This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Speaking of DWARF-2 macro info
Daniel Berlin wrote:-
> Weird.
> I'll have to just explicitly add another end file to dwarf2out i guess.
You shouldn't have to change anything - line-map.c checks everything for
consistency, and complains if we enter something without leaving it.
So, that means the issue is elsewhere [I should have remembered this and
mentioned it right at the start].
Is the hook in c-lex.c (cb_file_change) not doing the right thing for
the rename case? I'm afraid I don't fully understand the problem.
>From my glance at it, it does a debug_hooks->start_source_file for
every file entered *apart* from the main file, a
debug_hooks->end_source_file for every file left, and nothing for a
rename. Is the problem that nothing is being done for the start of the
main file?
You'll have to guide me here about what exactly the required semantics
are; I'm not a debug wizard. And the kludgy file stack handling in
toplev.c doesn't help; hopefully one day it will die.
Neil.