Fix wrapper.exp testcase with stdio gdbserver.
authorDoug Evans <dje@google.com>
Wed, 16 Apr 2014 17:40:41 +0000 (10:40 -0700)
committerDoug Evans <dje@google.com>
Wed, 16 Apr 2014 17:40:41 +0000 (10:40 -0700)
commitab19de874b887743e0862e6680e561f6fc4f02fa
tree629efc40748622bda35f488819520d0e57a34688
parentfc98a809db2b6792a47919d30c9bd3446f5a83ca
Fix wrapper.exp testcase with stdio gdbserver.

* lib/gdbserver-support.exp (gdbserver_default_get_remote_address):
Add comment.
(gdbserver_default_get_comm_port): New function.
(gdbserver_start): Check if board file provided
"gdbserver,get_comm_port" and use it if so.
* boards/native-stdio-gdbserver.exp (sockethost): Set to "".
(gdb,socketport): Set to "stdio".
(gdbserver,get_comm_port): Set to ${board}_get_comm_port.
(stdio_gdbserver_template): Delete.
(${board}_get_remote_address): Update.
(${board}_build_remote_cmd): Delete.
(${board}_get_comm_port): New function.
(${board}_spawn): Update.
* boards/remote-stdio-gdbserver.exp (${board}_build_remote_cmd):
Delete.
(${board}_get_remote_address): Update.
(${board}_get_comm_port): New function.
gdb/testsuite/ChangeLog
gdb/testsuite/boards/native-stdio-gdbserver.exp
gdb/testsuite/boards/remote-stdio-gdbserver.exp
gdb/testsuite/lib/gdbserver-support.exp