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: [RFA] Improve performance with lots of shared libraries


On Friday 09 September 2011 15:35:21, Jan Kratochvil wrote:
> 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

Not according to <http://sourceware.org/ml/gdb-patches/2011-08/msg00032.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
> 

-- 
Pedro Alves


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