This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Macro expansion: GCC 3.4.4
- From: M Ranga Swami Reddy <swamim at sankhya dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: John Love-Jensen <eljay at adobe dot com>, <gcc-help at gnu dot org>
- Date: Thu, 10 Nov 2005 13:09:46 +0530 (IST)
- Subject: Re: Macro expansion: GCC 3.4.4
- Reply-to: swamim at sankhya dot com
Hi,
The test case should be compiled with -g3 option. The '-g3' option
include the macro definitions present in the program, in debugging
information.
Regards,
Swami
--
Sankhya Technologies Private Limited
http://www.sankhya.com
On Thu, 10 Nov 2005, Nick Roberts wrote:
> John Love-Jensen writes:
> > Hi Nick,
> >
> > NCR is not a symbol. It is part of a preprocessor directive.
>
> Yes, but if I do:
>
> (gdb) inf source
> Current source file is myprog.c
> Compilation directory is /home/nickrob
> Located in /home/nickrob/myprog.c
> Contains 96 lines.
> Source language is c.
> Compiled with DWARF 2 debugging format.
> Includes preprocessor macro info.
> ^^^^^^^^
>
> It tells me that the executable should have information about that directive.
>
> GDB is GNU gdb Red Hat Linux (6.1post-1.20040607.43rh) but I get the same
> result with GDB from the CVS repository, which worked with an earlier GCC (3.2
> something on Mandrake 9), so I'm pretty sure that the problem doesn't lie with
> GDB.
>
> Nick
>