Check functionname_ptr and line_ptr before deciding we've found a symbol.

This commit is contained in:
Nick Clifton 2002-09-11 14:30:53 +00:00
parent e09f439535
commit dc43ada5bf
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-11 Andrew Haley <aph@cambridge.redhat.com>
* 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 <nickc@redhat.com>
* po/da.po: New Danish translation file.

View File

@ -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)