Hi guys,
Shall we should modify '-g' to '-g3' to have gcc save the macro info? So
when we install *-debuginfo packages, we can look up a macro definition,
just like we can look up a function definition.
The gdb info says,
GDB knows about preprocessor macros and can show you their expansion
(*note Macros::). Most compilers do not include information about
preprocessor macros in the debugging information if you specify the
`-g' flag alone. Version 3.1 and later of GCC, the GNU C compiler,
provides macro information if you are using the DWARF debugging format,
and specify the option `-g3'.
Thanks,
xning
--
Xibo Ning
Hosted and shared services
Red Hat Asia Pacific
IRC Account: xning at #hss #eng-china #libra
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel