Fix PR 20345 - call_function_by_hand_dummy: Assertion `tp->thread_fsm == &sm->thread_...
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / valgrind-db-attach.exp
index 56c6914f2df18db38c2c2575e3753e9cef42afbe..fafc7f3076f0ecae14f34bd76fa3024bcf6da3a2 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2009-2013 Free Software Foundation, Inc.
+# Copyright 2009-2016 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ if { $res < 0 || $res == "" } {
 }
 pass $test
 # Declare GDB now as running.
-set gdb_spawn_id -1
+set gdb_spawn_id $res
 
 # GDB spawned by `valgrind --db-attach=yes' stops already after the startup is
 # executed, like with non-extended gdbserver.  It is also not correct to
This page took 0.024583 seconds and 4 git commands to generate.