From: Nick Clifton Date: Wed, 11 Sep 2002 14:30:53 +0000 (+0000) Subject: Check functionname_ptr and line_ptr before deciding we've found a symbol. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc43ada5bf9f061a3a83dee34c08ff45687c7eba;p=binutils-gdb.git Check functionname_ptr and line_ptr before deciding we've found a symbol. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f7947277425..8a84296e83c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-09-11 Andrew Haley + + * elf.c (_bfd_elf_find_nearest_line): Check functionname_ptr and + line_ptr before deciding we've found a symbol. + 2002-09-11 Nick Clifton * po/da.po: New Danish translation file. diff --git a/bfd/elf.c b/bfd/elf.c index 71763d41bef..7f54909af96 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -6041,7 +6041,7 @@ _bfd_elf_find_nearest_line (abfd, section, symbols, offset, functionname_ptr, line_ptr, &elf_tdata (abfd)->line_info)) return false; - if (found) + if (found && (*functionname_ptr || *line_ptr)) return true; if (symbols == NULL)