aboutsummaryrefslogtreecommitdiff
path: root/gdb/dstread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-19 01:41:51 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-19 01:41:51 +0000
commit20657f710639800c4b0728490281d2cb0abc23c5 (patch)
tree94f7d779b494b8a939fb04e051c29bc00cf6bbc7 /gdb/dstread.c
parentff9785703dc0890189c9775766e492827e865e23 (diff)
downloadgdb-20657f710639800c4b0728490281d2cb0abc23c5.zip
gdb-20657f710639800c4b0728490281d2cb0abc23c5.tar.gz
gdb-20657f710639800c4b0728490281d2cb0abc23c5.tar.bz2
* dstread.c (record_minimal_symbol): New arg objfile. Pass it to
prim_record_minimal_symbol. Callers: Pass it.
Diffstat (limited to 'gdb/dstread.c')
-rw-r--r--gdb/dstread.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/gdb/dstread.c b/gdb/dstread.c
index 23e46ed..ad8806b 100644
--- a/gdb/dstread.c
+++ b/gdb/dstread.c
@@ -78,7 +78,8 @@ static void
dst_symfile_finish PARAMS ((struct objfile *));
static void
-record_minimal_symbol PARAMS ((char *, CORE_ADDR, enum minimal_symbol_type));
+record_minimal_symbol PARAMS ((char *, CORE_ADDR, enum minimal_symbol_type,
+ struct objfile *));
static void
dst_end_symtab PARAMS ((struct objfile *));
@@ -236,14 +237,16 @@ dst_end_symtab (objfile)
}
static void
-record_minimal_symbol (name, address, type)
+record_minimal_symbol (name, address, type, objfile)
char *name;
CORE_ADDR address;
enum minimal_symbol_type type;
+ struct objfile *objfile;
{
prim_record_minimal_symbol (savestring (name, strlen (name)),
- address,
- type);
+ address,
+ type,
+ objfile);
}
/* dst_symfile_init ()
@@ -1475,7 +1478,7 @@ process_dst_block(objfile, entry)
case dst_block_function:
case dst_block_subroutine:
case dst_block_program:
- record_minimal_symbol(name, address, mst_text);
+ record_minimal_symbol(name, address, mst_text, objfile);
function = process_dst_function(
objfile,
symbol_entry,
@@ -1637,7 +1640,7 @@ read_dst_symtab (objfile)
}
if (module_num)
record_minimal_symbol("<end_of_program>",
- BLOCK_END(block), mst_text);
+ BLOCK_END(block), mst_text, objfile);
/* One more faked symbol to make sure nothing can ever run off the
* end of the symbol table. This one represents the end of the
* text space. It used to be (CORE_ADDR) -1 (effectively the highest
@@ -1648,7 +1651,7 @@ read_dst_symtab (objfile)
*/
record_minimal_symbol("<end_of_text>",
(CORE_ADDR) 0x40000000,
- mst_text);
+ mst_text, objfile);
while (struct_list)
{
element = struct_list;