mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* corefile.c (core_create_function_syms): Remove "<locore>" and
"<hicore>" sentinels.
* gprof.c: Likewise.
* cg_print.c (cg_print_function_ordering): Likewise.
* alpha.c (alpha_find_call): Add check for return value of sym_lookup.
* mips.c (mips_find_call): Likewise.
* sparc.c (sparc_find_call): Likewise.
* tahoe.c (tahoe_find_call): Likewise.
* vax.c (vax_find_call): Likewise.
This commit is contained in:
21
gprof/mips.c
21
gprof/mips.c
@@ -74,16 +74,19 @@ mips_find_call (Sym *parent, bfd_vma p_lowpc, bfd_vma p_highpc)
|
||||
if (hist_check_address (dest_pc))
|
||||
{
|
||||
child = sym_lookup (&symtab, dest_pc);
|
||||
DBG (CALLDEBUG,
|
||||
printf (" 0x%lx\t; name=%s, addr=0x%lx",
|
||||
(unsigned long) dest_pc, child->name,
|
||||
(unsigned long) child->addr));
|
||||
if (child->addr == dest_pc)
|
||||
if (child)
|
||||
{
|
||||
DBG (CALLDEBUG, printf ("\n"));
|
||||
/* a hit: */
|
||||
arc_add (parent, child, (unsigned long) 0);
|
||||
continue;
|
||||
DBG (CALLDEBUG,
|
||||
printf (" 0x%lx\t; name=%s, addr=0x%lx",
|
||||
(unsigned long) dest_pc, child->name,
|
||||
(unsigned long) child->addr));
|
||||
if (child->addr == dest_pc)
|
||||
{
|
||||
DBG (CALLDEBUG, printf ("\n"));
|
||||
/* a hit: */
|
||||
arc_add (parent, child, (unsigned long) 0);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Something funny going on. */
|
||||
|
||||
Reference in New Issue
Block a user