diff options
author | Alan Modra <amodra@gmail.com> | 2023-02-08 10:53:59 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-02-08 11:17:00 +1030 |
commit | 4170bc7ea846a14485e4729f1e2d707a04035c6f (patch) | |
tree | 65c4648735054807df1505a2599ac2d963bc1891 /bfd | |
parent | c9245f0df5adbfcd2f51a1bc509ed088b5249232 (diff) | |
download | gdb-4170bc7ea846a14485e4729f1e2d707a04035c6f.zip gdb-4170bc7ea846a14485e4729f1e2d707a04035c6f.tar.gz gdb-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')
-rw-r--r-- | bfd/dwarf2.c | 2 |
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; |