Check the right proc name
authorYao Qi <yao.qi@linaro.org>
Wed, 21 Sep 2016 08:20:12 +0000 (09:20 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 22 Sep 2016 09:04:19 +0000 (10:04 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdbserver-support.exp

index 5d0669d801506d18124558a7864e6424bbb816ca..fb0ca3835619ba64d7fa467685645500731dec72 100644 (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.
index c0f17cd00438071d2cc59a95d4f7891215e7d9cd..70c8a5f9f0825fcea74494a1e2169a8d463c4d27 100644 (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 {} {