diff options
author | Nick Clifton <nickc@redhat.com> | 2005-12-27 16:07:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-12-27 16:07:36 +0000 |
commit | 650f284e0da5017204f524d6388c88ad87f0241d (patch) | |
tree | 2d382624991e7310d4a72bcb66fe2caa971506ed /bfd | |
parent | 92c2d36aa1f5ed08ce069e84487f8ef79be5dfd6 (diff) | |
download | gdb-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')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/dwarf2.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 29beee7..b9a51dc 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 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) |