public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
* [delayed-symfile] [commit] Fix objfile_relocate
@ 2009-12-06 21:06 Jan Kratochvil
  2009-12-07 17:50 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kratochvil @ 2009-12-06 21:06 UTC (permalink / raw)
  To: archer

850378e2d04b910f0541aa67e8fa5f990b6e35ba Mon Sep 17 00:00:00 2001
From: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Sun, 6 Dec 2009 22:02:22 +0100
Subject: [PATCH] Fix objfile_relocate for this branch.

	* objfiles.c (objfile_relocate): Call addrmap_relocate on quick_addrmap.

Testcase included in archer-jankratochvil-pie-fedora12 break-interp.exp .
---
 gdb/objfiles.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 9c5f303..0f75ebd 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -633,6 +633,11 @@ objfile_relocate (struct objfile *objfile, struct section_offsets *new_offsets)
     }
   }
 
+  /* Alread QUICK_ADDRMAP tiself assumes all sections have the same offset.  */
+  if (objfile->quick_addrmap)
+    addrmap_relocate (objfile->quick_addrmap,
+		      ANOFFSET (delta, SECT_OFF_TEXT (objfile)));
+
   {
     struct partial_symbol **psym;
 
-- 
1.6.5.2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-08 19:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-06 21:06 [delayed-symfile] [commit] Fix objfile_relocate Jan Kratochvil
2009-12-07 17:50 ` Tom Tromey
2009-12-08 19:10   ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).