aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-pending-frame-level.py
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2024-10-17 17:16:54 -0600
committerTom Tromey <tom@tromey.com>2024-10-24 14:17:47 -0600
commitce61f407ac3b509e5b5a16bb79f6848f2de3695f (patch)
treef9ce9f6df433abee62ee835aa0fe69b396a70fb7 /gdb/testsuite/gdb.python/py-pending-frame-level.py
parentabbc4d4435aade0773974f05acaff2fab67dbf78 (diff)
downloadbinutils-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