aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-02-08 10:53:59 +1030
committerAlan Modra <amodra@gmail.com>2023-02-08 11:17:00 +1030
commit4170bc7ea846a14485e4729f1e2d707a04035c6f (patch)
tree65c4648735054807df1505a2599ac2d963bc1891 /bfd/dwarf2.c
parentc9245f0df5adbfcd2f51a1bc509ed088b5249232 (diff)
downloadbinutils-4170bc7ea846a14485e4729f1e2d707a04035c6f.zip
binutils-4170bc7ea846a14485e4729f1e2d707a04035c6f.tar.gz
binutils-4170bc7ea846a14485e4729f1e2d707a04035c6f.tar.bz2
Re: Resetting section vma after _bfd_dwarf2_find_nearest_line
f.bfd_ptr is set too early to be a reliable indicator of good debug info. * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Correct test for debug info being previously found.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index ab5a9f3..b16ae11 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -5382,7 +5382,7 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd, bfd *debug_bfd,
{
/* Check that we did previously find some debug information
before attempting to make use of it. */
- if (stash->f.bfd_ptr != NULL)
+ if (stash->f.dwarf_info_size != 0)
{
if (do_place && !place_sections (abfd, stash))
return false;