diff options
author | Tom Tromey <tom@tromey.com> | 2024-10-17 17:16:54 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-10-24 14:17:47 -0600 |
commit | ce61f407ac3b509e5b5a16bb79f6848f2de3695f (patch) | |
tree | f9ce9f6df433abee62ee835aa0fe69b396a70fb7 /gdb/testsuite/gdb.python/py-pending-frame-level.py | |
parent | abbc4d4435aade0773974f05acaff2fab67dbf78 (diff) | |
download | binutils-ce61f407ac3b509e5b5a16bb79f6848f2de3695f.zip binutils-ce61f407ac3b509e5b5a16bb79f6848f2de3695f.tar.gz binutils-ce61f407ac3b509e5b5a16bb79f6848f2de3695f.tar.bz2 |
Add locking when reading BFD sections
This adds some per-BFD locking to gdb_bfd_map_section and
gdb_bfd_get_full_section_contents.
It turned out that the background DWARF reader could race with the
auto-load code, because the reader might try to mmap a section when
the main thread was trying to read in .debug_gdb_scripts.
The current BFD threading model is that only BFD globals will be
locked, so any multi-threaded use of a BFD has to be handled specially
by the application.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31626
Reviewed-by: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-pending-frame-level.py')
0 files changed, 0 insertions, 0 deletions