Thanks Daniel, I have posted the message to gdb mailing list. Sagar. -----Original Message----- From: Daniel Berlin [mailto:dberlin@xxxxxxxxxxx] Sent: Monday, February 14, 2005 2:57 PM To: Vidyasagara Guntaka Cc: gcc-help@xxxxxxxxxxx Subject: 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.