This is the mail archive of the gdb-patches@sourceware.org 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] Prints the frame id when target stops


On Thu, Jan 18, 2007 at 08:57:40AM +0100, Frederic RISS wrote:
> > For instance:
> >   - We can speed up the psymtab lookup which currently shows up in
> >     profiles.  A coworker of mine gave me some clever ideas on how
> >     to do this if anyone wants to try it :-)
> 
> Hehe. What's the idea? maybe someone will pick it up.

Rouhly speaking, recording all of the intervals covered by psymbols
on a per objfile basis.  If you avoid using the faster lookup mechanism
in the presence of overlays, you can assume a single best symbol
covering each address and roughly non-overlapping (but not quite).

It's just going to be a matter of slogging through it.  I expect we'd
get a bunch of splay trees.

On Thu, Jan 18, 2007 at 10:34:39AM -0800, Jim Blandy wrote:
> Yeah --- I'd be very concerned about GDB performance optimizations
> that would cause GDB to not notice, say, corruptions of the stack by
> buffer overruns.

Absolutely.  As fast as possible, but no faster :-)

> Could you enable 'debug remote' while it's doing the unwinding, and
> figure out what it's actually fetching?

Yes please.

-- 
Daniel Jacobowitz
CodeSourcery


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