This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Debugging Macros with gdb
On Mon, 2005-02-14 at 14:50 -0800, Vidyasagara Guntaka wrote:
> Hi,
>
> I am new to this list.
>
> I am trying to debug macros using gdb. I have read the gdb document
> which said that -gdwarf-2 and -g3 options must be present while
> compiling using gcc. I did that. Still, when I used gdb, it complained
> that there was no information for the macro name. Do I need to specify
No. This looks like a gdb bug:
readelf on the executable clearly shows we have output the macro info
for ABC
DW_MACINFO_define - lineno : 3 macro : ABC 257
DW_MACINFO_end_file
GDB also claims to know nothing about any of the macros we have defined.