]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Call end_symtab() with SECT_OFF_TEXT (objfile).
authorKevin Buettner <kevinb@redhat.com>
Tue, 24 Oct 2000 21:13:08 +0000 (21:13 +0000)
committerKevin Buettner <kevinb@redhat.com>
Tue, 24 Oct 2000 21:13:08 +0000 (21:13 +0000)
gdb/ChangeLog
gdb/coffread.c
gdb/hp-symtab-read.c
gdb/hpread.c

index 236eda07c5bcff669d1580ca56fff5fbe7d94b80..c29f6df7078b17c89b9ffe499880058a0b0feba3 100644 (file)
@@ -1,3 +1,12 @@
+2000-10-24  Kevin Buettner  <kevinb@redhat.com>
+
+       * coffread.c (coff_end_symtab): When calling end_symtab(),
+       use SECT_OFF_TEXT() instead of 0 to represent the .text
+       section.
+       * hp-symtab-read.c (hpread_expand_symtab): Likewise.
+       * hpread.c (hpread_expand_symtab, hpread_process_one_debug_symbol):
+       Likewise.
+
 2000-10-24  Kevin Buettner  <kevinb@redhat.com>
 
        * solib-svr4.c: New file created out of much of solib.c...
index f35609d0a8a9e0664e962e84b6ce8e9cd17d9f7d..91fd8a451d84bc58fcd6c65420f79edca1e44c1d 100644 (file)
@@ -475,7 +475,7 @@ coff_end_symtab (struct objfile *objfile)
 
   last_source_start_addr = current_source_start_addr;
 
-  symtab = end_symtab (current_source_end_addr, objfile, 0);
+  symtab = end_symtab (current_source_end_addr, objfile, SECT_OFF_TEXT (objfile));
 
   if (symtab != NULL)
     free_named_symtabs (symtab->filename);
index 902a40d207d91bd351a5a895fff43729df3764aa..f45054ffb2795b9ac95e7acd1ca784e931b54e37 100644 (file)
@@ -516,7 +516,7 @@ hpread_expand_symtab (struct objfile *objfile, int sym_offset, int sym_size,
   current_objfile = NULL;
   hp_som_som_object_present = 1;       /* Indicate we've processed an HP SOM SOM file */
 
-  return end_symtab (text_offset + text_size, objfile, 0);
+  return end_symtab (text_offset + text_size, objfile, SECT_OFF_TEXT (objfile));
 }
 \f
 
index 9ee526a6af8a1146db57d219c07a00f6d797e09c..4e25083e165a0d9692fa8edc03d180b0825c6d1c 100644 (file)
@@ -1064,7 +1064,7 @@ hpread_expand_symtab (struct objfile *objfile, int sym_offset, int sym_size,
 
   current_objfile = NULL;
 
-  return end_symtab (text_offset + text_size, objfile, 0);
+  return end_symtab (text_offset + text_size, objfile, SECT_OFF_TEXT (objfile));
 }
 \f
 
@@ -1822,7 +1822,7 @@ hpread_process_one_debug_symbol (union dnttentry *dn_bufp, char *name,
        case DNTT_TYPE_MODULE:
          /* Ending a module ends the symbol table for that module.  */
          valu = text_offset + text_size + offset;
-         (void) end_symtab (valu, objfile, 0);
+         (void) end_symtab (valu, objfile, SECT_OFF_TEXT (objfile));
          break;
 
        case DNTT_TYPE_FUNCTION: