aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog9
-rw-r--r--gdb/coffread.c2
-rw-r--r--gdb/hp-symtab-read.c2
-rw-r--r--gdb/hpread.c4
4 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 236eda0..c29f6df 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,14 @@
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...
* solib.c (_SYSCALL32, BKPT_AT_SYMBOL): Move these defines to
solib-svr4.c.
diff --git a/gdb/coffread.c b/gdb/coffread.c
index f35609d..91fd8a4 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -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);
diff --git a/gdb/hp-symtab-read.c b/gdb/hp-symtab-read.c
index 902a40d..f45054f 100644
--- a/gdb/hp-symtab-read.c
+++ b/gdb/hp-symtab-read.c
@@ -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));
}
diff --git a/gdb/hpread.c b/gdb/hpread.c
index 9ee526a..4e25083 100644
--- a/gdb/hpread.c
+++ b/gdb/hpread.c
@@ -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));
}
@@ -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: