aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/fission-reread.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-05-15 15:50:34 -0700
committerDoug Evans <dje@google.com>2014-05-15 15:50:34 -0700
commitc2b2ccc5eddd4c0f592576c983135c0f18b90bf8 (patch)
tree2ed8e0cbee1eeb244fb4733817eef51ce37f6818 /gdb/testsuite/gdb.dwarf2/fission-reread.exp
parent83655187cbef02404645abcc98d607e22eeda573 (diff)
downloadgdb-c2b2ccc5eddd4c0f592576c983135c0f18b90bf8.zip
gdb-c2b2ccc5eddd4c0f592576c983135c0f18b90bf8.tar.gz
gdb-c2b2ccc5eddd4c0f592576c983135c0f18b90bf8.tar.bz2
Make more robust when run in parallel mode.
Since we're not compiling with gcc, we don't know where the DWO file will ultimately be built. It could be built in testsuite/gdb.dwarf2/foo (non-parallel mode) or testsuite/outputs/gdb.dwarf2/foo (parallel mode). * gdb.dwarf2/fission-reread.S: Remove directory from .dwo file path. * gdb.dwarf2/fission-reread.exp: Set debug-file-directory before loading file. Add test for TU lookup.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/fission-reread.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/fission-reread.exp11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/fission-reread.exp b/gdb/testsuite/gdb.dwarf2/fission-reread.exp
index e7c3d9d..7eb792b 100644
--- a/gdb/testsuite/gdb.dwarf2/fission-reread.exp
+++ b/gdb/testsuite/gdb.dwarf2/fission-reread.exp
@@ -32,10 +32,19 @@ if [build_executable_from_fission_assembler \
return -1
}
-clean_restart ${binfile}
+gdb_exit
+gdb_start
+gdb_reinitialize_dir $srcdir/$subdir
+# Make sure we can find the .dwo file, regardless of whether we're
+# running in parallel mode.
+gdb_test_no_output "set debug-file-directory [file dirname $binfile]" \
+ "set debug-file-directory"
+gdb_load $binfile
gdb_test "break main" "Breakpoint.*at.*"
+gdb_test "ptype baz" "type = class foo {.*"
+
# If we get this far gdb didn't crash, nor did an error occur.
pass $testfile