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: [patch] Eliminate quadratic slow-down on number of solibs (part 2).


On Tue, May 12, 2009 at 1:25 AM, Joel Brobecker <brobecker@adacore.com> wrote:

>> It feels like a hack, but I don't see how to achieve the same
>> result in a cleaner way :-(
>
> But I'm sympathetic to the issue - it's tough to have to wait
> an extra 20secs

Or extra 2 minutes in my case :-(

> when you know that you don't have any breakpoint
> refering to any SO... My thoughts on this: Perhaps a setting
> in the "maintenance set/show" that the user could change to deactivate
> breakpoint reset.

Note that the gdb-breakpoint-20090505.txt patch did not deactivate
breakpoint reset. It merely turned an O(N*N) operation into O(N)
operation, by resetting breakpoints once, after all solib symbols
have been loaded.

Because of that, your "maintenance set ..." suggestion doesn't
make sense to me: why would you ever want O(N*N) algorithm when an
O(N) one is available?

Thanks,
-- 
Paul Pluzhnikov


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