projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c2d36
)
(lookup_symbol_in_function_table): Check for a function name before passing
author
Nick Clifton
<nickc@redhat.com>
Tue, 27 Dec 2005 16:07:36 +0000
(16:07 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Tue, 27 Dec 2005 16:07:36 +0000
(16:07 +0000)
it to strcmp.
bfd/ChangeLog
patch
|
blob
|
history
bfd/dwarf2.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 29beee703e0860baddd064e6a2d5bd3b9bb97662..b9a51dc5f9b1bb211bb043952b4d6300ca71156f 100644
(file)
--- 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 5cfcc908e8dccb2ff709e52e1c8935fc1f54dca0..123dd9c430d695b191d0c18db286ffa18d294906 100644
(file)
--- 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)