aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/lazy-string
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-12-11 13:01:23 +1030
committerAlan Modra <amodra@gmail.com>2024-12-12 16:04:51 +1030
commit338c58cac6ea08a8ec90a06496054fcf9e45d094 (patch)
treea3f481b55aa0f04a6e3b03d80c26f8fae2e356f0 /gdb/testsuite/gdb.ada/lazy-string
parent4d72d1027143d8a63f5e61d36516cb6846d7c71b (diff)
downloadbinutils-338c58cac6ea08a8ec90a06496054fcf9e45d094.zip
binutils-338c58cac6ea08a8ec90a06496054fcf9e45d094.tar.gz
binutils-338c58cac6ea08a8ec90a06496054fcf9e45d094.tar.bz2
Use bfd id to validate dwarf2 cache
Using a bfd pointer to validate the cache isn't very robust. If a bfd is closed somehow without clearing the cache, then it's possible that another bfd is opened using the same memory and thus orig_bfd compares equal to the new bfd. * dwarf2.c (struct dwarf2_debug): Add orig_bfd_id. Delete orig_bfd. (_bfd_dwarf2_slurp_debug_info): Validate stash with orig_bfd_id.
Diffstat (limited to 'gdb/testsuite/gdb.ada/lazy-string')
0 files changed, 0 insertions, 0 deletions