aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index b1f4ea6..a092657 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1703,19 +1703,13 @@ _bfd_dwarf2_find_nearest_line (bfd *abfd,
We keep a list of all the previously read compilation units, and
a pointer to the next un-read compilation unit. Check the
previously read units before reading more. */
- struct dwarf2_debug *stash;
+ struct dwarf2_debug *stash = *pinfo;
/* What address are we looking for? */
- bfd_vma addr;
+ bfd_vma addr = offset + section->vma;
struct comp_unit* each;
- stash = *pinfo;
- addr = offset;
- if (section->output_section)
- addr += section->output_section->vma + section->output_offset;
- else
- addr += section->vma;
*filename_ptr = NULL;
*functionname_ptr = NULL;
*linenumber_ptr = 0;