old-cross-binutils/gdb/testsuite/lib
Jan Kratochvil 0b10be4faf Fix "ERROR: no fileid for" in the testsuite.
If GDB has crashed then gdb_spawn_id still exists (although it does not work).
So my patch does not change anything.  And also currently it will leave the
stale gdbserver running anyway.

In general if gdb_spawn_id does not exist then send_gdb + gdb_expect just do
not make sense anyway.  So this patch just prevents the error in such case.

The killing of stale gdbserver could be improved multiple ways (also as
suggested by Pedro in the original thread) but that is IMO outside of the
scope of this patch.  Apparently if there is no good response from GDB then
gdb_finish() should try to call gdb_start just to kill that gdbserver, IIUC.

gdb/testsuite/
2014-02-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix "ERROR: no fileid for" in the testsuite.
	* lib/gdb.exp (gdb_finish): Check gdb_spawn_id.

Message-ID: <20140206205814.GA18495@host2.jankratochvil.net>
2014-02-16 21:49:40 +01:00
..
ada.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
append_gdb_boards_dir.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cache.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cell.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cl_util.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cl_util.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
compiler.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
compiler.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
cp-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
d-support.exp Add gdb.dlang to the gdb testsuite for the purpose of creating D 2014-01-18 18:09:28 +00:00
dwarf.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fortran.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
future.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb-guile.exp Add Guile as an extension language. 2014-02-09 19:40:01 -08:00
gdb-python.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb.exp Fix "ERROR: no fileid for" in the testsuite. 2014-02-16 21:49:40 +01:00
gdbserver-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
go.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
java.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mi-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
objc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
opencl.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
opencl_hostapp.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
opencl_kernel.cl
pascal.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
perftest.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
prelink-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
prompt.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
range-stepping-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
selftest-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
set_unbuffered_mode.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-support.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00