This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Macro expansion: GCC 3.4.4


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
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]