commit | e9b738dfbdc504589e1a365ce32981f4b23c22c3 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Thu Jan 25 06:48:22 2024 -0700 |
committer | Tom Tromey <tom@tromey.com> | Fri Mar 08 07:15:08 2024 -0700 |
tree | 289bc9e3c5315007ac2f9ab9dae5a6994ccbf83e | |
parent | cdabd12b186e8e794045372b753416a18c387d7b [diff] |
Avoid race when reading dwz file PR gdb/31260 points out a race introduced by the background reading changes. If a given objfile is re-opened when it is already being read, dwarf2_initialize_objfile will call dwarf2_read_dwz_file again, causing the 'dwz_file' to be reset. This patch fixes the problem by arranging to open the dwz just once: when the dwarf2_per_bfd object is created. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31260