[RFA] Improve performance with lots of shared libraries
Jan Kratochvil
jan.kratochvil@redhat.com
Fri Sep 9 14:51:00 GMT 2011
On Fri, 09 Sep 2011 16:25:30 +0200, Daniel Jacobowitz wrote:
> On Fri, Sep 9, 2011 at 8:31 AM, Gary Benson <gbenson@redhat.com> wrote:
> > Â * when there are no pending breakpoints,
>
> If you "break foo", it might put that breakpoint in more than one
> shared library. If you load a new library with an implementation of
> foo, we should stop on that one too. How can we make that work
> without processing the library events?
This feature was planned being aware of this problem.
It does not work currently, GDB just puts the breakpoint on a random first
place found.
The Tom's multi-location breakpoints patch (archer-tromey-ambiguous-linespec)
is being coded with this behavior so that by default gdb syntax it is defined
the first resolution is final.
http://sourceware.org/ml/gdb-patches/2011-07/msg00740.html
I would guess this patch should be checked-in only after Tom's. Or make it
opt-in configurable. Or just say the already broken behavior is now broken in
a different way.
Thanks,
Jan
More information about the Gdb-patches
mailing list