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:-

> Personally, I could care less either way.
> cpplib as it stands right now is too hard to integrate into GDB, mainly
> because expanding macros in gdb means we want a text string back, not
> tokens.

Surely gdb's C expression parser acts on tokens?  If so, why isn't it
easy to just pass the whole expression to cpplib and parse the token
stream back, like the front-ends would (though you only have to handle
expressions this way I imagine).  I can't see why text is better to
you than tokens.

Neil.


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