aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-12-27 16:07:36 +0000
committerNick Clifton <nickc@redhat.com>2005-12-27 16:07:36 +0000
commit650f284e0da5017204f524d6388c88ad87f0241d (patch)
tree2d382624991e7310d4a72bcb66fe2caa971506ed /bfd/dwarf2.c
parent92c2d36aa1f5ed08ce069e84487f8ef79be5dfd6 (diff)
downloadgdb-650f284e0da5017204f524d6388c88ad87f0241d.zip
gdb-650f284e0da5017204f524d6388c88ad87f0241d.tar.gz
gdb-650f284e0da5017204f524d6388c88ad87f0241d.tar.bz2
(lookup_symbol_in_function_table): Check for a function name before passing
it to strcmp.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 5cfcc90..123dd9c 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1467,6 +1467,7 @@ lookup_symbol_in_function_table (struct comp_unit *unit,
if ((!each_func->sec || each_func->sec == sec)
&& addr >= arange->low
&& addr < arange->high
+ && each_func->name
&& strcmp (name, each_func->name) == 0
&& (!best_fit
|| ((arange->high - arange->low)