This is the mail archive of the 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: [PATCH] Add tree and rtl accessor functions for debuggers

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

> 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

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