aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-07-04 13:33:12 -0600
committerTom Tromey <tom@tromey.com>2021-07-17 10:41:42 -0600
commit15659f0a4ea0787d2c2194a4e3712a56ac3eff84 (patch)
tree223f810288bca5a796599993f0f0f3b0b073f90a /gdb
parente0ec6b1a8796127c5141647bfe88e260716d6cd4 (diff)
downloadgdb-15659f0a4ea0787d2c2194a4e3712a56ac3eff84.zip
gdb-15659f0a4ea0787d2c2194a4e3712a56ac3eff84.tar.gz
gdb-15659f0a4ea0787d2c2194a4e3712a56ac3eff84.tar.bz2
Check for debug-types in map_symbol_filenames
map_symbol_filenames can skip type units -- in fact I think it has to, due to the assertion at the top of dw2_get_file_names. This may be a regression due to the TU/CU unification patch, I did not check.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/read.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index c730c52..9054259 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -4420,7 +4420,8 @@ dwarf2_base_index_functions::map_symbol_filenames
for (const auto &per_cu : per_objfile->per_bfd->all_comp_units)
{
- if (per_objfile->symtab_set_p (per_cu.get ()))
+ if (!per_cu->is_debug_types
+ && per_objfile->symtab_set_p (per_cu.get ()))
{
if (per_cu->v.quick->file_names != nullptr)
qfn_cache.insert (per_cu->v.quick->file_names);
@@ -4430,7 +4431,8 @@ dwarf2_base_index_functions::map_symbol_filenames
for (const auto &per_cu : per_objfile->per_bfd->all_comp_units)
{
/* We only need to look at symtabs not already expanded. */
- if (per_objfile->symtab_set_p (per_cu.get ()))
+ if (per_cu->is_debug_types
+ || per_objfile->symtab_set_p (per_cu.get ()))
continue;
quick_file_names *file_data = dw2_get_file_names (per_cu.get (),