aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2020-06-10 14:46:53 +0200
committerTom de Vries <tdevries@suse.de>2020-06-10 14:46:53 +0200
commit7ab967941150b2f79fc089893bf51e6bb53d245b (patch)
treeb3bb8366a5e5844465c99d99b2b1b0b6daa88b7d /gdb/testsuite
parente5f3ece2ab3b14677c87d9694d822c9ee01b36fe (diff)
downloadgdb-7ab967941150b2f79fc089893bf51e6bb53d245b.zip
gdb-7ab967941150b2f79fc089893bf51e6bb53d245b.tar.gz
gdb-7ab967941150b2f79fc089893bf51e6bb53d245b.tar.bz2
[gdb/symtab] Enable ada .gdb_index
Currently the .gdb_index is not enabled for ada executables (PR24713). Fix this by adding the required support in write_psymbols, similar to how that is done for .debug_names in debug_names::insert. Tested on x86_64-linux, with native and target board cc-with-gdb-index. gdb/ChangeLog: 2020-06-10 Tom de Vries <tdevries@suse.de> PR ada/24713 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. (write_psymbols): Enable .gdb_index for ada. * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for ada. gdb/testsuite/ChangeLog: 2020-06-10 Tom de Vries <tdevries@suse.de> * gdb.ada/ptype_union.exp: Remove PR24713 workaround.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.ada/ptype_union.exp5
2 files changed, 4 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index dd00365..e8306bd 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-06-10 Tom de Vries <tdevries@suse.de>
+
+ * gdb.ada/ptype_union.exp: Remove PR24713 workaround.
+
2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
* gdb.base/index-cache.exp (test_cache_disabled): Add test_prefix
diff --git a/gdb/testsuite/gdb.ada/ptype_union.exp b/gdb/testsuite/gdb.ada/ptype_union.exp
index 470f9b5..c85e5f4 100644
--- a/gdb/testsuite/gdb.ada/ptype_union.exp
+++ b/gdb/testsuite/gdb.ada/ptype_union.exp
@@ -19,11 +19,6 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
return -1
}
-if {[exec_has_index_section $binfile]} {
- unsupported "Ada is not currently supported by the index (PR 24713)"
- return -1
-}
-
# The test case is written in C, because it was easy to make the
# required type there; but the bug itself only happens in Ada.
gdb_test "set lang ada" ""