aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/threadcrash.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/threadcrash.exp')
-rw-r--r--gdb/testsuite/gdb.threads/threadcrash.exp8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.threads/threadcrash.exp b/gdb/testsuite/gdb.threads/threadcrash.exp
index ffbfd83..6da7073 100644
--- a/gdb/testsuite/gdb.threads/threadcrash.exp
+++ b/gdb/testsuite/gdb.threads/threadcrash.exp
@@ -251,17 +251,15 @@ proc_with_prefix test_gcore {} {
}
gdb_test "continue" ".*Segmentation fault.*" "continue to crash"
- set gcore_name "${::binfile}.gcore"
- set gcore_supported [gdb_gcore_cmd "$gcore_name" "saving gcore"]
+ set gcore_host [host_standard_output_file $::testfile.gcore]
+ set gcore_supported [gdb_gcore_cmd "$gcore_host" "saving gcore"]
if {!$gcore_supported} {
unsupported "couldn't generate gcore file"
return
}
- set corefile [gdb_remote_download host $gcore_name]
-
- gdb_test "core-file $corefile" \
+ gdb_test "core-file $gcore_host" \
"" \
"loading_corefile" \
"A program is being debugged already\\\. Kill it\\\? \\\(y or n\\\) " \