aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-09-11 14:30:53 +0000
committerNick Clifton <nickc@redhat.com>2002-09-11 14:30:53 +0000
commitdc43ada5bf9f061a3a83dee34c08ff45687c7eba (patch)
tree64b2a91d9d0ff7619ef9948bbd872f9f0d30b4cd /bfd
parente09f4395355f59211870488d5f223466bdf2e703 (diff)
downloadgdb-dc43ada5bf9f061a3a83dee34c08ff45687c7eba.zip
gdb-dc43ada5bf9f061a3a83dee34c08ff45687c7eba.tar.gz
gdb-dc43ada5bf9f061a3a83dee34c08ff45687c7eba.tar.bz2
Check functionname_ptr and line_ptr before deciding we've found a symbol.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f794727..8a84296 100644
--- a/bfd/ChangeLog
+++ b/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.
diff --git a/bfd/elf.c b/bfd/elf.c
index 71763d4..7f54909 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)