aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/step-line.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/step-line.exp')
-rw-r--r--gdb/testsuite/gdb.base/step-line.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/step-line.exp b/gdb/testsuite/gdb.base/step-line.exp
index 7d1ef1f..97eb3a1 100644
--- a/gdb/testsuite/gdb.base/step-line.exp
+++ b/gdb/testsuite/gdb.base/step-line.exp
@@ -26,6 +26,7 @@ if $tracelevel then {
set testfile step-line
set srcfile ${testfile}.c
+set linefile ${testfile}.inp
set binfile ${objdir}/${subdir}/${testfile}
remote_exec build "rm -f ${binfile}"
@@ -44,6 +45,8 @@ if ![runto_main] then {
return 0
}
+set remote_linefile [remote_download host ${srcdir}/${subdir}/${linefile}]
+
gdb_test "break f1" ".*Breakpoint 2 at .* file step-line.c.*" "break f1"
gdb_test "continue" \
"Continuing.*Breakpoint 2, f1 \\(i=4\\).*dummy \\(1, i\\);" \
@@ -90,4 +93,7 @@ gdb_test "next" \
gdb_test "next" \
".*RETURN \\(j\\);.*" \
"next over dummy 10"
+
+remote_file host delete ${remote_linefile}
+
return 0