This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [delayed-symfile] [commit] Fix objfile_relocate
On Mon, 07 Dec 2009 18:50:41 +0100, Tom Tromey wrote:
> Jan> + /* Alread QUICK_ADDRMAP tiself assumes all sections have the same offset. */
>
> Two typos, "Already" and "itself".
>
> Also, AFAICT gcc only emits text ranges in .debug_aranges.
Later found at least dwarf2read.c already commonly assumes SECT_OFF_TEXT is
applicable to any types (/data/bss) of inferior objects.
Thanks,
Jan
aaeaa5944753c471599839b077635e4b3717d870
From: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date: Tue, 8 Dec 2009 20:07:13 +0100
Subject: [PATCH] Drop <quick_addrmap> comment.
* objfiles.c (objfile_relocate) <quick_addrmap>: Drop the comment.
---
gdb/objfiles.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index 0f75ebd..2cd1001 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -633,7 +633,6 @@ 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)));
--
1.6.5.2