aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-07-19 16:51:10 +0000
committerNick Clifton <nickc@redhat.com>2007-07-19 16:51:10 +0000
commit6b33789f617a22563c87282673aa23d9b8b4a3ca (patch)
tree18c9b379cf25194775bad7d6ddc701cb32e409af
parentb27a00c5888e7d6b08c40fa98403a8c3dc38ba8e (diff)
downloadgdb-6b33789f617a22563c87282673aa23d9b8b4a3ca.zip
gdb-6b33789f617a22563c87282673aa23d9b8b4a3ca.tar.gz
gdb-6b33789f617a22563c87282673aa23d9b8b4a3ca.tar.bz2
PR binutils/4797
* dwarf2.c: (find_line) Do not dereference functionname_ptr if do_line is true.
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/dwarf2.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 81a8fd4..a90b270 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2007-07-19 Doug Kwan <dougkwan@google.com>
+
+ PR binutils/4797
+ * dwarf2.c: (find_line) Do not dereference functionname_ptr if
+ do_line is true.
+
2007-07-18 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 87bee39..bcaebc2 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -2380,7 +2380,8 @@ find_line (bfd *abfd,
else
addr += section->vma;
*filename_ptr = NULL;
- *functionname_ptr = NULL;
+ if (! do_line)
+ *functionname_ptr = NULL;
*linenumber_ptr = 0;
if (! *pinfo)