gdb/testsuite/ 2014-02-06 Jan Kratochvil Fix "ERROR: no fileid for" in the testsuite. * lib/gdb.exp (gdb_finish): Check gdb_spawn_id. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 533b81b..5c53cdf 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3708,7 +3708,8 @@ proc gdb_finish { } { global cleanfiles # Give persistent gdbserver a chance to terminate before GDB is killed. - if {[info exists gdbserver_reconnect_p] && $gdbserver_reconnect_p} { + if {[info exists gdbserver_reconnect_p] && $gdbserver_reconnect_p + && [info exists gdb_spawn_id]} { send_gdb "kill\n"; gdb_expect 10 { -re "y or n" {