This is the mail archive of the
mailing list for the GCC project.
Re: Merge cpplib and front end hashtables, part 1
Daniel Berlin wrote:-
> My main problem is getting the defines into cpplib, from the dwarf2
Ah yes, I'd forgotten that the table changes with source line, and I
suppose GDB has to handle that. Yes, I can see that being
non-trivial and tedious.
How about defining all macros that are never undefined all in one go
(if you don't mind using a bit of memory), and figuring out those few
that are #undef-ed on the spot? (And undeffing them afterwards).
One potential problem here is that undeffing a macro doesn't entirely
free its memory, so a long debugging session would creep up its memory
usage. We may need to look into it if you're taking that kind of