From: Tom de Vries Date: Thu, 30 Apr 2020 16:51:49 +0000 (+0200) Subject: Revert "2020-04-29 Sterling Augustine " X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2a0dd767a59a4b1e343c178177dcaee55e540f1;p=binutils-gdb.git Revert "2020-04-29 Sterling Augustine " This reverts commit 84ed7a472551bce1ac58e0eced619433fabc956c. The problem that the commit attempts to address has already been fixed in commit 770479f223e "gdb: Fix toplevel types with -fdebug-types-section". The commit itself is superfluous because it sets list_in_scope at a point that it's already set (by start_symtab). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f78d8292488..ede911f7ac7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -50,10 +50,6 @@ * gdbarch.sh: Use %s with printf, instead of variables in the format string. -2020-04-29 Sterling Augustine - - * dwarf2/read.c (setup_type_unit_groups): Set list_in_scope. - 2020-04-29 Tom Tromey PR ada/25875: diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 91a6803bf3b..1813085d0d7 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -10942,7 +10942,6 @@ dwarf2_cu::setup_type_unit_groups (struct die_info *die) = XOBNEWVEC (&COMPUNIT_OBJFILE (cust)->objfile_obstack, struct symtab *, line_header->file_names_size ()); - list_in_scope = get_builder ()->get_file_symbols (); auto &file_names = line_header->file_names (); for (i = 0; i < file_names.size (); ++i) {