This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: C/C++ preprocessor macro support for GDB



On Sunday, March 17, 2002, at 01:23 AM, Jim Blandy wrote:

>
> The following patch adds support for C/C++ preprocessor macros to GDB.
> It's tentative:
>
> - There are no ChangeLog entries.
> - It's not broken up into relatively independent changes.
> - There's no documentation.
> - There are no tests.
> - There are some unimplemented features.
>
> I'll put it in proper form and re-post it soon, but I'm putting it out
> now in hopes that folks will try it out and send me bug reports and
> suggestions.
>
> The patch reads Dwarf 2 macro information, which GCC doesn't currently
> generate.  (In fact, I don't know if any compiler generates it at the
> moment.)

Umm, Actually, we've been generating it for quite a while.
Try -gdwarf-2 -g3.
I can't remember when exactly I added it, but it was certainly a while 
ago.
> So the debugger side of pre-processor macro support is pretty much
> done.  I hope someone in GCC-land gets the itch and adds the
> compiler-side support needed.
>
Beat you to it by a long time.
I had it done before I had started rewriting the dwarf2 reader (so if 
you look at the earliest patch I had submitted to gdb, and subtract a 
few months, you'll get when it was added to gcc).


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