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] Speed up find_pc_section


On Wed, Jul 22, 2009 at 7:25 AM, Tom Tromey<tromey@redhat.com> wrote:

> Paul, could you please either fix this ASAP, or revert the change while
> coming up with a fix? ?Thanks.

Here is the fix for both issues.
Tested on Linux/x86_64, no regressions.

I'll work up a test case for add-symbol-file in a separate patch.
Not sure if I can make a test case for objfile_relocate though.

Thanks,
-- 
Paul Pluzhnikov


2009-07-22  Paul Pluzhnikov  <ppluzhnikov@google.com>

	* objfiles.c (objfile_relocate): Must rebuild section map.
	(set_objfiles_updated_on_new_objfile): New observer.
	(_initialize_objfiles): Register it.

Attachment: gdb-find_pc_section-20090722.txt
Description: Text document


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