This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: C/C++ preprocessor macro support for GDB
- From: Daniel Berlin <dan at dberlin dot org>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Sun, 17 Mar 2002 12:07:18 -0500
- Subject: 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).