aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
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 /bfd/dwarf2.c
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.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c3
1 files changed, 2 insertions, 1 deletions
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)