GNU Binutils with patches for OS216
Revision | 9c211fd8d6c7a600a7e55f272e21a967377a7c87 (tree) |
---|---|
Time | 2016-09-22 18:04:19 |
Author | Yao Qi <yao.qi@lina...> |
Commiter | Yao Qi |
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.
@@ -1,3 +1,8 @@ | ||
1 | +2016-09-22 Yao Qi <yao.qi@linaro.org> | |
2 | + | |
3 | + * lib/gdbserver-support.exp: Check the existence of | |
4 | + gdbserver_orig_gdb_exit rather than gdbserver_gdb_exit. | |
5 | + | |
1 | 6 | 2016-09-21 Anton Kolesov <anton.kolesov@synopsys.com> |
2 | 7 | |
3 | 8 | * gdb.xml/tdesc-regs.exp: set core-regs for arc*-*-elf32. |
@@ -358,7 +358,7 @@ proc close_gdbserver {} { | ||
358 | 358 | |
359 | 359 | # Hook into GDB exit, and close GDBserver. |
360 | 360 | |
361 | -if { [info procs gdbserver_gdb_exit] == "" } { | |
361 | +if { [info procs gdbserver_orig_gdb_exit] == "" } { | |
362 | 362 | rename gdb_exit gdbserver_orig_gdb_exit |
363 | 363 | } |
364 | 364 | proc gdb_exit {} { |