Check functionname_ptr and line_ptr before deciding we've found a symbol.
authorNick Clifton <nickc@redhat.com>
Wed, 11 Sep 2002 14:30:53 +0000 (14:30 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 11 Sep 2002 14:30:53 +0000 (14:30 +0000)
bfd/ChangeLog
bfd/elf.c

index f7947277425c9e7d6d8725a6207e7333b1d39017..8a84296e83c6d68af5740c491c76c82cf6d85356 100644 (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.
index 71763d41befce52a8bcd4aff828f22f580532cec..7f54909af96a5d236cfda2ea0d4f3f15b67d1fca 100644 (file)
--- 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)
This page took 0.031375 seconds and 4 git commands to generate.