From: Tom Tromey Date: Sat, 27 Mar 2021 22:41:53 +0000 (-0600) Subject: Don't clear 'qf' in elf_symfile_read X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=594b8948eb660ba1634d842f605a4170bb476c7e;p=binutils-gdb.git Don't clear 'qf' in elf_symfile_read I noticed that I forgot to make a change in my series to make it possible to attach multiple debug readers to an objfile. In one spot, elf_symfile_read still clears the 'qf' list. However, this should have been removed toward the end of that series. This patch fixes the offending spot. Tested on x86-64 Fedora 32. gdb/ChangeLog 2021-03-27 Tom Tromey * elfread.c (elf_symfile_read): Don't clear 'qf'. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c3063b8c90c..bdd01c9c4bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-03-27 Tom Tromey + + * elfread.c (elf_symfile_read): Don't clear 'qf'. + 2021-03-26 Lancelot Six * contrib/gdb-add-index.sh: Avoid variable shadowing and get diff --git a/gdb/elfread.c b/gdb/elfread.c index 49bbbec663e..1f4858521a9 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1286,7 +1286,6 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) objfile->qf.push_front (make_dwarf_gdb_index ()); break; case dw_index_kind::DEBUG_NAMES: - objfile->qf.clear (); objfile->qf.push_front (make_dwarf_debug_names ()); break; }