From: Michael Snyder <Michael.Snyder@palmsource.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Thomas Neumann <tneumann@users.sourceforge.net>, gdb@sourceware.org
Subject: Re: Organization of breakpoint locations
Date: Wed, 21 Feb 2007 17:05:00 -0000 [thread overview]
Message-ID: <1172020305.19657.83.camel@localhost.localdomain> (raw)
In-Reply-To: <20070219115744.GC6815@caradoc.them.org>
On Mon, 2007-02-19 at 06:57 -0500, Daniel Jacobowitz wrote:
> On Mon, Feb 19, 2007 at 11:38:40AM +0100, Thomas Neumann wrote:
> > Hi,
> >
> > I would like some suggestions on the organization of breakpoint
> > locations in breakpoint.c. Currently, all breakpoint locations are
> > stored in a linear list. This does not scale if the number of
> > breakpoints is large, see PR 2230 for an example. Instead the
> > breakpoints should be stored in a suitable search structure (e.g. a
> > balanced tree).
> >
> > I have a patch that converts the list into a splay. Works fine, and the
> > bottleneck indeed goes away, but I am not satisfied with the approach
> > itself.
>
> Have you tested this in any real world use yet? This is only the
> first limitation you'll encounter, I think. For instance, every time
> you step and then stop the program, GDB is going to remove every
> breakpoint. That's going to be just as slow.
Maybe not. If they're grouped by address, and if there are
a lot of duplicates, gdb could set/clear the breakpoint at
that address once, and then mark them all inserted or not.
next prev parent reply other threads:[~2007-02-21 1:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-19 11:57 Thomas Neumann
2007-02-19 12:54 ` Daniel Jacobowitz
2007-02-19 14:40 ` Thomas Neumann
2007-02-19 14:48 ` Daniel Jacobowitz
2007-02-19 14:54 ` Michael Veksler
2007-02-19 21:24 ` Daniel Jacobowitz
2007-02-20 4:46 ` Thomas Neumann
2007-02-20 10:26 ` Thomas Neumann
2007-02-21 17:05 ` Michael Snyder [this message]
2007-02-21 1:53 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1172020305.19657.83.camel@localhost.localdomain \
--to=michael.snyder@palmsource.com \
--cc=drow@false.org \
--cc=gdb@sourceware.org \
--cc=tneumann@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox