commit | c748b24c47d2f94d2282ffa31d7484a732c18cfd | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Sun Jun 27 18:44:29 2021 -0600 |
committer | Tom Tromey <tom@tromey.com> | Tue Apr 12 09:31:16 2022 -0600 |
tree | d133c70f131e3ef0d42b3aeead5ff0d075bc3dbd | |
parent | da6322977928bc23b0d6a3a88af8c935fb334f3e [diff] |
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.