aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.arch/amd64-entry-value-param.exp')
-rw-r--r--gdb/testsuite/gdb.arch/amd64-entry-value-param.exp10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
index da1445f..504c534 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value-param.exp
@@ -18,12 +18,17 @@ set opts {}
if [info exists COMPILE] {
# make check RUNTESTFLAGS="gdb.arch/amd64-entry-value-param.exp COMPILE=1"
- set srcfile ${srcfile2}
+ standard_testfile .c .c
lappend opts debug optimize=-O2
} else {
require is_x86_64_m64_target
}
+# Make .c available on the host.
+if [is_remote host] {
+ remote_download host $srcdir/$subdir/$srcfile2
+}
+
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} $opts] } {
return -1
}
@@ -32,8 +37,7 @@ if ![runto_main] {
return -1
}
-set srcfile $srcfile2
-gdb_breakpoint [gdb_get_line_number "break-here"]
+gdb_breakpoint [gdb_get_line_number "break-here" $srcfile2]
with_test_prefix "call 1" {
gdb_continue_to_breakpoint "break-here" ".* break-here .*"