old-cross-binutils/gdb/testsuite/lib
Yao Qi 2efe15c428 Catch exception in lib/gdbserver-support.exp:gdb_exit
I see the error when I run gdb-sigterm.exp with native-gdbserver
on x86_64-linux.

infrun: prepare_to_wait^M
Cannot execute this command while the target is running.^M
Use the "interrupt" command to stop the target^M
and then try again.^M
gdb.base/gdb-sigterm.exp: expect eof #0: got eof
gdb.base/gdb-sigterm.exp: expect eof #0: stepped 12 times
ERROR OCCURED: : spawn id exp8 not open
    while executing
"expect {
-i exp8 -timeout 10
            -re "$gdb_prompt $" {
                exp_continue
            }
            -i "$server_spawn_id" eof {
                wait -i $expect_out(spawn_id)
                unse..."
    ("uplevel" body line 1)
    invoked from within

In gdb-sigterm.exp, SIGTERM is sent to GDB and it exits.  However,
Dejagnu or tcl doesn't know this.

This patch is to catch the exception, but error messages are still
shown in the console and gdb.log.  In order to avoid this, we also
replace gdb_expect with expect.

gdb/testsuite:

2015-04-13  Yao Qi  <yao.qi@linaro.org>

	* lib/gdbserver-support.exp (gdb_exit): Catch exception
	and use expect instead of gdb_expect.
2015-04-13 15:46:11 +01:00
..
ada.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
append_gdb_boards_dir.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cache.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cell.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cl_util.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cl_util.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compiler.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
compiler.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
cp-support.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
d-support.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
dtrace.exp Simple testsuite for DTrace USDT probes. 2015-02-17 16:41:16 +01:00
dwarf.exp dwarf.exp: Allow generating a stub .debug_line section 2015-03-31 16:25:07 +02:00
fortran.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
future.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb-guile.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb-python.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb-utils.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
gdb.exp testsuite: Introduce $inferior_spawn_id 2015-04-07 18:28:38 +01:00
gdbserver-support.exp Catch exception in lib/gdbserver-support.exp:gdb_exit 2015-04-13 15:46:11 +01:00
go.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
java.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-support.exp Accept all-stop alternative in mi_expect_interrupt 2015-03-04 17:56:58 -05:00
objc.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
opencl.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
opencl_hostapp.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
opencl_kernel.cl
pascal.exp * lib/pascal.exp (gpc_compile): Rename dest arg to destfile. 2015-04-06 08:45:06 -07:00
pdtrace.in Simple testsuite for DTrace USDT probes. 2015-02-17 16:41:16 +01:00
perftest.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
prelink-support.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
prompt.exp Introduce gdb_interact in testsuite 2015-01-22 15:49:08 -05:00
range-stepping-support.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
selftest-support.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
set_unbuffered_mode.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-support.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unbuffer_output.c Add "../lib/unbuffer_output.c" and use it in gdb.base/interrupt.c 2015-02-27 13:54:22 +00:00