summaryrefslogtreecommitdiff
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
commit7f07e1e582ff5989ebc6434e1246a724d57f948d (patch)
tree741d1fdb161312e5043682ae3902d51cf7dbe887
parent915ad63997356280cfc66d35b88e2943ee2988ec (diff)
downloadgdb-7f07e1e582ff5989ebc6434e1246a724d57f948d.tar.gz
(lookup_symbol_in_function_table): Check for a function name before passing
it to strcmp.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/dwarf2.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 29beee703e0..b9a51dc5f9b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-27 Marty Leisner <leisner@rochester.rr.com>
+
+ * dwarf2.c (lookup_symbol_in_function_table): Check for a function
+ name before passing it to strcmp.
+
2005-12-27 Alan Modra <amodra@bigpond.net.au>
* elf.c (elf_find_function): Don't ignore section syms.
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 5cfcc908e8d..123dd9c430d 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)