This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: macro debugging info: emit correct line number for #inclusions
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?
Neil.