From 6b33789f617a22563c87282673aa23d9b8b4a3ca Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 19 Jul 2007 16:51:10 +0000 Subject: [PATCH] PR binutils/4797 * dwarf2.c: (find_line) Do not dereference functionname_ptr if do_line is true. --- bfd/ChangeLog | 6 ++++++ bfd/dwarf2.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 81a8fd487e1..a90b270cfa9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2007-07-19 Doug Kwan + + PR binutils/4797 + * dwarf2.c: (find_line) Do not dereference functionname_ptr if + do_line is true. + 2007-07-18 Bob Wilson * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 87bee392747..bcaebc2b88d 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) -- 2.30.2