* dstread.c (record_minimal_symbol): New arg objfile. Pass it to
prim_record_minimal_symbol. Callers: Pass it.
This commit is contained in:
parent
ff9785703d
commit
20657f7106
|
@ -1,5 +1,9 @@
|
||||||
Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Fri Mar 18 10:25:55 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* dstread.c (record_minimal_symbol): New arg objfile. Pass it to
|
||||||
|
prim_record_minimal_symbol.
|
||||||
|
Callers: Pass it.
|
||||||
|
|
||||||
* regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
|
* regex.c (EXTEND_BUFFER): Adjust pointers within buffer by
|
||||||
computing their offset from the start of the old buffer and adding
|
computing their offset from the start of the old buffer and adding
|
||||||
to the new buffer, rather than by assuming we can add the
|
to the new buffer, rather than by assuming we can add the
|
||||||
|
|
|
@ -78,7 +78,8 @@ static void
|
||||||
dst_symfile_finish PARAMS ((struct objfile *));
|
dst_symfile_finish PARAMS ((struct objfile *));
|
||||||
|
|
||||||
static void
|
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
|
static void
|
||||||
dst_end_symtab PARAMS ((struct objfile *));
|
dst_end_symtab PARAMS ((struct objfile *));
|
||||||
|
@ -236,14 +237,16 @@ dst_end_symtab (objfile)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
record_minimal_symbol (name, address, type)
|
record_minimal_symbol (name, address, type, objfile)
|
||||||
char *name;
|
char *name;
|
||||||
CORE_ADDR address;
|
CORE_ADDR address;
|
||||||
enum minimal_symbol_type type;
|
enum minimal_symbol_type type;
|
||||||
|
struct objfile *objfile;
|
||||||
{
|
{
|
||||||
prim_record_minimal_symbol (savestring (name, strlen (name)),
|
prim_record_minimal_symbol (savestring (name, strlen (name)),
|
||||||
address,
|
address,
|
||||||
type);
|
type,
|
||||||
|
objfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dst_symfile_init ()
|
/* dst_symfile_init ()
|
||||||
|
@ -1475,7 +1478,7 @@ process_dst_block(objfile, entry)
|
||||||
case dst_block_function:
|
case dst_block_function:
|
||||||
case dst_block_subroutine:
|
case dst_block_subroutine:
|
||||||
case dst_block_program:
|
case dst_block_program:
|
||||||
record_minimal_symbol(name, address, mst_text);
|
record_minimal_symbol(name, address, mst_text, objfile);
|
||||||
function = process_dst_function(
|
function = process_dst_function(
|
||||||
objfile,
|
objfile,
|
||||||
symbol_entry,
|
symbol_entry,
|
||||||
|
@ -1637,7 +1640,7 @@ read_dst_symtab (objfile)
|
||||||
}
|
}
|
||||||
if (module_num)
|
if (module_num)
|
||||||
record_minimal_symbol("<end_of_program>",
|
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
|
/* 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
|
* end of the symbol table. This one represents the end of the
|
||||||
* text space. It used to be (CORE_ADDR) -1 (effectively the highest
|
* 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>",
|
record_minimal_symbol("<end_of_text>",
|
||||||
(CORE_ADDR) 0x40000000,
|
(CORE_ADDR) 0x40000000,
|
||||||
mst_text);
|
mst_text, objfile);
|
||||||
while (struct_list)
|
while (struct_list)
|
||||||
{
|
{
|
||||||
element = struct_list;
|
element = struct_list;
|
||||||
|
|
Loading…
Reference in New Issue