From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: archer@sourceware.org
Subject: [delayed-symfile] [commit] Fix objfile_relocate
Date: Sun, 06 Dec 2009 21:06:00 -0000 [thread overview]
Message-ID: <20091206210612.GA2003@host0.dyn.jankratochvil.net> (raw)
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
next reply other threads:[~2009-12-06 21:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-06 21:06 Jan Kratochvil [this message]
2009-12-07 17:50 ` Tom Tromey
2009-12-08 19:10 ` Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091206210612.GA2003@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=archer@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).