diff options
author | Yao Qi <yao.qi@linaro.org> | 2016-09-21 09:20:12 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2016-09-22 10:04:19 +0100 |
commit | 9c211fd8d6c7a600a7e55f272e21a967377a7c87 (patch) | |
tree | ff61aa4b56096f4d70cbf642353a0d865949e025 | |
parent | 1e0baa1f26cf008198d0abf4d9f1595f464d5657 (diff) | |
download | gdb-9c211fd8d6c7a600a7e55f272e21a967377a7c87.zip gdb-9c211fd8d6c7a600a7e55f272e21a967377a7c87.tar.gz gdb-9c211fd8d6c7a600a7e55f272e21a967377a7c87.tar.bz2 |
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.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdbserver-support.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 5d0669d..fb0ca38 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index c0f17cd..70c8a5f 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -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 {} { |