diff options
author | Tom Tromey <tom@tromey.com> | 2021-06-27 18:44:29 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-12 09:31:16 -0600 |
commit | c748b24c47d2f94d2282ffa31d7484a732c18cfd (patch) | |
tree | d133c70f131e3ef0d42b3aeead5ff0d075bc3dbd /gdb/c-lang.c | |
parent | da6322977928bc23b0d6a3a88af8c935fb334f3e (diff) | |
download | gdb-c748b24c47d2f94d2282ffa31d7484a732c18cfd.zip gdb-c748b24c47d2f94d2282ffa31d7484a732c18cfd.tar.gz gdb-c748b24c47d2f94d2282ffa31d7484a732c18cfd.tar.bz2 |
Pre-read DWARF section data
Because BFD is not thread-safe, we need to be sure that any section
data that is needed is read before trying to do any DWARF indexing in
the background.
This patch takes a simple approach to this -- it pre-reads the
"info"-related sections. This is done for the main file, but also any
auxiliary files as well, such as the DWO file.
This patch could be perhaps enhanced by removing some now-redundant
calls to dwarf2_section_info::read.
Diffstat (limited to 'gdb/c-lang.c')
0 files changed, 0 insertions, 0 deletions