[pushed,2/3,gdb/testsuite] Fix gdb.btrace/gcore.exp for remote host
Commit Message
Fix test-case gdb.btrace/gcore.exp for remote host using
host_standard_output.
Tested on x86_64-linux.
---
gdb/testsuite/gdb.btrace/gcore.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -36,6 +36,6 @@ gdb_test "next" ".*main\.3.*"
gdb_test "record goto begin" ".*main\.2.*"
# generate a core file - this used to assert
-set corefile [standard_output_file core]
+set corefile [host_standard_output_file core]
gdb_test "generate-core-file $corefile" "Saved corefile $corefile" \
"generate-core-file core"