Browse Source

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

drow-cplus-branch
Nick Clifton 24 years ago
parent
commit
dc43ada5bf
  1. 5
      bfd/ChangeLog
  2. 2
      bfd/elf.c

5
bfd/ChangeLog

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

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

Loading…
Cancel
Save