Check the right proc name

In lib/gdbserver-support.exp, we rename gdb_exit to
gdbserver_orig_gdb_exit, but we check the existence gdbserver_gdb_exit.
We should check gdbserver_orig_gdb_exit instead.  Looks it is a typo
or an oversight.

gdb/testsuite:

2016-09-22  Yao Qi  <yao.qi@linaro.org>

	* lib/gdbserver-support.exp: Check the existence of
	gdbserver_orig_gdb_exit rather than gdbserver_gdb_exit.
This commit is contained in:
Yao Qi 2016-09-21 09:20:12 +01:00
parent 1e0baa1f26
commit 9c211fd8d6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-09-22 Yao Qi <yao.qi@linaro.org>
* lib/gdbserver-support.exp: Check the existence of
gdbserver_orig_gdb_exit rather than gdbserver_gdb_exit.
2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com>
* gdb.xml/tdesc-regs.exp: set core-regs for arc*-*-elf32.

View File

@ -358,7 +358,7 @@ proc close_gdbserver {} {
# Hook into GDB exit, and close GDBserver.
if { [info procs gdbserver_gdb_exit] == "" } {
if { [info procs gdbserver_orig_gdb_exit] == "" } {
rename gdb_exit gdbserver_orig_gdb_exit
}
proc gdb_exit {} {