The backtraces guide states: "The basic flag to add in this case is -g. That tells the compiler to include extra information in objects, such as filenames and line numbers. This is usually enough to have basic backtraces, but the flags -g2 and -ggdb add more information." but -g is equivalent to -g2. (like -ggdb is equivalent to -ggdb2 but that's beside the point)
Created attachment 119140 [details, diff] backtraces.xml.diff
Thanks, but we (GDP) generally don't touch other project's docs -> reassigning to QA.
where do you see the statement that "-g2" is equivalent to "-g"
-glevel -ggdblevel -gstabslevel -gcofflevel -gxcofflevel -gvmslevel Request debugging information and also use level to specify how much information. The default level is 2. Level 0 produces no debug information at all. Thus, -g0 negates -g. Level 1 produces minimal information, enough for making backtraces in parts of the program that you don't plan to debug. This includes descriptions of functions and external variables, but no information about local variables and no line numbers. Level 3 includes extra information, such as all the macro definitions present in the program. Some debuggers support macro expansion when you use -g3. http://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html#Debugging-Options
my look through the source code didnt turn up such visibility which is why i was asking ... thanks, merged