aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.dwarf2/gdb-index.exp6
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3dec824..104303f 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2019-09-29 Tom de Vries <tdevries@suse.de>
+ * gdb.dwarf2/gdb-index.exp: Handle new location of .dwz file.
+
+2019-09-29 Tom de Vries <tdevries@suse.de>
+
* gdb.dwarf2/gdb-index.exp: Use with_test_prefix for second objcopy.
2019-09-27 Tom de Vries <tdevries@suse.de>
diff --git a/gdb/testsuite/gdb.dwarf2/gdb-index.exp b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
index b14e07f..1fe993a 100644
--- a/gdb/testsuite/gdb.dwarf2/gdb-index.exp
+++ b/gdb/testsuite/gdb.dwarf2/gdb-index.exp
@@ -34,8 +34,10 @@ if { [prepare_for_testing "failed to prepare" "${testfile}" \
proc add_gdb_index { program } {
set index_file ${program}.gdb-index
- set dwz ${program}.dwz
- set dwz_index_file ${dwz}.gdb-index
+ set dir [file dirname ${program}]
+ set filename [file tail ${program}]
+ set dwz $dir/.tmp/${filename}.dwz
+ set dwz_index_file $program.dwz.gdb-index
verbose -log "index_file: ${index_file}"
remote_file host delete ${index_file}
remote_file host delete ${dwz_index_file}