This is the mail archive of the gcc-patches@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 debugging info: emit correct line number for #inclusions


On Tue, 19 Mar 2002, Neil Booth wrote:

> Daniel Berlin wrote:-
> 
> > Someone must have moved the debug hook after the src location pushing, 
> > which resets the line number variable we were using.
> 
> Might have been me.  *shrug*
> 
> > The code hasn't been looked at since I wrote it and tested it, since GDB 
> > didn't support it, and I don't use many macros when debugging with my 
> > debugger.
> > 
> > We can't really test it in the testsuite, though if gdb had tests, the 
> > regression checker for gcc, which runs the gdb testsuite, should catch it.
> 
> We should be able to get the dump that Jim showed, and grep for a
> certain line therein, no?

Nope (not every libc has stdio.h include features.h at the same place)
Though I guess we could construct our own headers here.
> 
> Neil.
> 


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