From 804506f6e8eeb5b3bd02d516ff4faab5679f198a Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 21 Sep 1993 23:15:10 +0000 Subject: [PATCH] (objfile_relocate): Relocate textlow and texthigh in psymtabs. --- gdb/objfiles.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 30a0aadc8b4..93d5ddea201 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -479,6 +479,10 @@ objfile_relocate (objfile, new_offsets) ALL_OBJFILE_PSYMTABS (objfile, p) { + /* FIXME: specific to symbol readers which use gdb-stabs.h. + We can only get away with it since objfile_relocate is only + used on XCOFF, which lacks psymtabs, and for gdb-stabs.h + targets. */ p->textlow += ANOFFSET (delta, SECT_OFF_TEXT); p->texthigh += ANOFFSET (delta, SECT_OFF_TEXT); } -- 2.30.2