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]

Re: Merge cpplib and front end hashtables, part 1


Daniel Berlin wrote:-

> My main problem is getting the defines into cpplib, from the dwarf2
> info.

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
thing seriously.

Neil.


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