This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Speed up find_pc_section
>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:
I'm finally catching up on this thread...
Paul> Perhaps I should just add a sequence number to 'struct objfile'? That
Paul> looks like it would almost give exact same ordering as what GDB used
Paul> before qsort+bsearch was introduced.
Is there some benefit to the old ordering?
I assumed that the old approach just gave the user an arbitrary
ordering, in which case any change here is no big deal. But, if there
is a benefit to the old ordering, sure, restore it.
How stable a sort would you want? You could just fall back to the
objfile's address. Or is that too awful?
Tom