From b2a0dd767a59a4b1e343c178177dcaee55e540f1 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Thu, 30 Apr 2020 18:51:49 +0200 Subject: [PATCH] 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). --- gdb/ChangeLog | 4 ---- gdb/dwarf2/read.c | 1 - 2 files changed, 5 deletions(-) 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) { -- 2.30.2