(objfile_relocate): Relocate textlow and texthigh in psymtabs.
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 21 Sep 1993 23:15:10 +0000 (23:15 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 21 Sep 1993 23:15:10 +0000 (23:15 +0000)
gdb/objfiles.c

index 30a0aadc8b45c5f100abbadfa62106d7803aa8f3..93d5ddea201bea98fcf5ab102a25cc265be2e252 100644 (file)
@@ -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);
       }