aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/valgrind-infcall.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/valgrind-infcall.exp')
-rw-r--r--gdb/testsuite/gdb.base/valgrind-infcall.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/valgrind-infcall.exp b/gdb/testsuite/gdb.base/valgrind-infcall.exp
index ad81e91c..3d3fdd3 100644
--- a/gdb/testsuite/gdb.base/valgrind-infcall.exp
+++ b/gdb/testsuite/gdb.base/valgrind-infcall.exp
@@ -33,7 +33,7 @@ if { $res < 0 || $res == "" } {
}
pass $test
# Declare GDB now as running.
-set gdb_spawn_id -1
+set gdb_spawn_id $res
# GDB started by vgdb stops already after the startup is executed, like with
# non-extended gdbserver. It is also not correct to run/attach the inferior.