aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-03-27 16:41:53 -0600
committerTom Tromey <tom@tromey.com>2021-03-27 16:41:53 -0600
commit594b8948eb660ba1634d842f605a4170bb476c7e (patch)
tree8bfbdc7645596803a09848c3fb318aded847aa8c /gdb
parent99066782db401e60d9707a20c77e9f133f3b199b (diff)
downloadgdb-594b8948eb660ba1634d842f605a4170bb476c7e.zip
gdb-594b8948eb660ba1634d842f605a4170bb476c7e.tar.gz
gdb-594b8948eb660ba1634d842f605a4170bb476c7e.tar.bz2
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 <tom@tromey.com> * elfread.c (elf_symfile_read): Don't clear 'qf'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/elfread.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c3063b8..bdd01c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2021-03-27 Tom Tromey <tom@tromey.com>
+
+ * elfread.c (elf_symfile_read): Don't clear 'qf'.
+
2021-03-26 Lancelot Six <lsix@lancelotsix.com>
* contrib/gdb-add-index.sh: Avoid variable shadowing and get
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 49bbbec..1f48585 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;
}