This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add tree and rtl accessor functions for debuggers
- To: Stan Shebs <shebs at apple dot com>
- Subject: Re: [PATCH] Add tree and rtl accessor functions for debuggers
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Thu, 10 May 2001 21:22:38 -0400 (EDT)
- cc: Mark Mitchell <mark at codesourcery dot com>, <tromey at redhat dot com>, <ira at apple dot com>, <gcc-patches at gcc dot gnu dot org>
On Thu, 10 May 2001, Stan Shebs wrote:
> Daniel Berlin wrote:
> >
> > On Thu, 10 May 2001, Stan Shebs wrote:
> >
> > > Mark Mitchell wrote:
> > > >
> > > > It shouldn't be a very big project given that DWARF2 can conveniently
> > > > represent macro definitions and that cpplib makes expanding macros a
> > > > snap.
> > >
> > > I've looked into this a bit, since I fantasize about doing this myself
> > > someday, and it's a multi-month project for someone who knows something
> > > about both GCC and GDB, even just for Dwarf2.
> > I can't see how.
> > In fact, i have a basic working prototype that took me about 4 days to do
> > in gdb, and about a weeks worth of gcc work.
> > It's really *not* that difficult.
> > I'll gladly give it to you to work on if you like.
>
> Excellent! You know us old folks, we always inflate our estimates... :-)
I think it makes up for my old habit of estimating everything at taking 10
minutes.
:)
> I'd love to take a look at it - would be way more fun than tracking yet
> another bootstrap failure... What's left to do with it?
I never got around to integrating cpplib. It only does simple argument
replacement right now.
IE I did all the symbol output (On the gcc side), and symbol reader work,
and made a simple pass at the evaluation work.
You'd only really need to modify one routine, and just make it use cpplib
instead of doing my simple argument replacement.
We just need cpplib to hand us back a string we can hand back to the
expression parser again to evaluate.
>
> Stan
>