binutils-gdb/gdb/dwarf2
Tom Tromey 91874afabc Pre-read DWZ file in DWARF reader
While working on background reading of DWARF, I came across the
DWZ-reading code.  This code can query the user (via the debuginfod
support) -- something that cannot be done off the main thread.

Looking into it, I realized that this code can be run much earlier,
avoiding this problem.  Digging a bit deeper, I also found a
discrepancy here between how the DWARF reader works in "readnow" mode
as compared to the normal modes.

This patch cleans this up by trying to read the DWZ file earlier, and
also by having the DWARF reader convert any exception here into a
warning.  This unifies the various cases, but also makes it so that
errors do not prevent gdb from continuing on to the extent possible.

Regression tested on x86-64 Fedora 38.
2023-11-05 12:32:34 -07:00
..
abbrev-cache.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
abbrev-cache.h gdb: move call site types to call-site.h 2023-01-20 14:48:57 -05:00
abbrev.c [gdb/symtab] Add optimized out static var to cooked index 2023-07-21 08:25:25 +02:00
abbrev.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
ada-imported.c Handle Ada Pragma Import and Pragma Export 2023-05-12 13:25:28 -06:00
aranges.c Move read_addrmap_from_aranges to new file 2023-10-29 10:35:29 -06:00
aranges.h Move read_addrmap_from_aranges to new file 2023-10-29 10:35:29 -06:00
attribute.c Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
attribute.h Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
call-site.h Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
comp-unit-head.c Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
comp-unit-head.h Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
cooked-index.c Rename split_style::DOT 2023-09-15 07:39:47 -06:00
cooked-index.h [gdb/symtab] Fix data race on index_cache::m_enabled 2023-08-04 15:02:43 +02:00
cu.c [gdb/symtab] Work around gas PR28629 2023-11-01 00:33:12 +01:00
cu.h [gdb/symtab] Work around gas PR28629 2023-11-01 00:33:12 +01:00
die.c Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
die.h Move some code from dwarf2/read.c to die.c 2023-02-12 13:03:58 -07:00
dwz.c Pre-read DWZ file in DWARF reader 2023-11-05 12:32:34 -07:00
dwz.h [gdb/symtab] Error out for .debug_types section in dwz file 2023-09-20 16:05:55 +02:00
expr.c Simplify case DW_OP_GNU_uninit in dwarf_expr_context::execute_stack_op 2023-06-12 16:02:40 -07:00
expr.h Change value::m_initialized to bool 2023-02-15 15:07:07 -07:00
file-and-dir.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame-tailcall.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame-tailcall.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
frame.c gdb: add gdb::make_unique function 2023-08-23 09:50:30 +01:00
frame.h gdb: dwarf2 generic implementation for caching function data 2023-01-25 21:04:40 +01:00
index-cache.c [gdb/symtab] Fix data race on bfd::{cacheable,format} 2023-08-04 15:02:43 +02:00
index-cache.h [gdb/symtab] Fix data race on bfd::{cacheable,format} 2023-08-04 15:02:43 +02:00
index-common.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
index-common.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
index-write.c Don't include cooked-index.h from dwarf2/read.h 2023-10-20 13:03:34 -06:00
index-write.h Only use the per-BFD object to write a DWARF index 2023-02-24 11:46:53 -07:00
leb.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
leb.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
line-header.c [gdb/symtab] Handle empty file name in .debug_line section 2023-04-17 18:09:32 +02:00
line-header.h [gdb] Fix typos 2023-06-03 22:43:57 +02:00
loc.c Use gdb::byte_vector in agent_expr 2023-06-20 11:00:19 -06:00
loc.h Use unrelocated_addr in the DWARF reader 2023-06-05 09:59:18 -06:00
macro.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
macro.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
mapped-index.h Write the DWARF index in the background 2023-02-24 11:46:53 -07:00
public.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
read-debug-names.c Move read_addrmap_from_aranges to new file 2023-10-29 10:35:29 -06:00
read-debug-names.h gdb/dwarf2: split .debug_names reading code to own file 2023-02-15 15:12:06 -05:00
read-gdb-index.c [gdb/symtab] Fix more style issues in v9 .gdb_index section support 2023-10-20 11:56:49 +02:00
read-gdb-index.h gdb/dwarf2: split .gdb_index reading code to own file 2023-02-15 15:12:01 -05:00
read.c Pre-read DWZ file in DWARF reader 2023-11-05 12:32:34 -07:00
read.h Pre-read DWZ file in DWARF reader 2023-11-05 12:32:34 -07:00
sect-names.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
section.c Rename bfd_bread and bfd_bwrite 2023-08-09 08:48:09 +09:30
section.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
stringify.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
stringify.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
tag.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
types.h gdb: update some copyright years (2022 -> 2023) 2023-03-01 20:54:56 -05:00