diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9fc54c0001..b18d4b6743 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-05-15 Maciej W. Rozycki + + * gdb.server/server-kill.exp: Verify whether `server_pid' exists + rather then trying to access it in determining whether the PID + of `gdbserver' could have been retrieved. + 2018-05-08 Andrew Burgess * gdb.arch/amd64-init-x87-values.S: New file. diff --git a/gdb/testsuite/gdb.server/server-kill.exp b/gdb/testsuite/gdb.server/server-kill.exp index 0701d5fe40..c110f3a50a 100644 --- a/gdb/testsuite/gdb.server/server-kill.exp +++ b/gdb/testsuite/gdb.server/server-kill.exp @@ -46,7 +46,7 @@ gdb_test_multiple $test $test { } } -if {$server_pid == "" } { +if ![info exists server_pid] { return -1 }