1 1.1.1.3 christos # Copyright 2015-2017 Free Software Foundation, Inc. 2 1.1 christos 3 1.1 christos # This program is free software; you can redistribute it and/or modify 4 1.1 christos # it under the terms of the GNU General Public License as published by 5 1.1 christos # the Free Software Foundation; either version 3 of the License, or 6 1.1 christos # (at your option) any later version. 7 1.1 christos # 8 1.1 christos # This program is distributed in the hope that it will be useful, 9 1.1 christos # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 1.1 christos # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 1.1 christos # GNU General Public License for more details. 12 1.1 christos # 13 1.1 christos # You should have received a copy of the GNU General Public License 14 1.1 christos # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 1.1 christos 16 1.1 christos # This file is a dejagnu "board file" and is used to run the testsuite 17 1.1 christos # with remote gdbserver on localhost. 18 1.1 christos # 19 1.1 christos # To use this file: 20 1.1 christos # bash$ cd ${build_dir}/gdb 21 1.1 christos # bash$ make check RUNTESTFLAGS="--target_board=remote-gdbserver-on-localhost" 22 1.1 christos 23 1.1 christos load_generic_config "gdbserver" 24 1.1.1.3 christos load_board_description "gdbserver-base" 25 1.1 christos 26 1.1 christos # The sshd should be running on localhost and ssh key should be 27 1.1 christos # correctly set up that you ssh to localhost without having to type 28 1.1 christos # password. 29 1.1 christos set_board_info rcp_prog "/usr/bin/scp" 30 1.1 christos set_board_info rsh_prog "/usr/bin/ssh" 31 1.1 christos set_board_info protocol standard 32 1.1 christos set_board_info username $env(USER) 33 1.1 christos set_board_info hostname localhost 34 1.1 christos 35 1.1 christos # We will be using the standard GDB remote protocol 36 1.1 christos set_board_info gdb_protocol "remote" 37 1.1 christos 38 1.1 christos # Use techniques appropriate to a stub 39 1.1 christos set_board_info use_gdb_stub 1 40 1.1 christos 41 1.1 christos # This gdbserver can only run a process once per session. 42 1.1 christos set_board_info gdb,do_reload_on_run 1 43 1.1 christos 44 1.1 christos # There's no support for argument-passing (yet). 45 1.1 christos set_board_info noargs 1 46 1.1 christos 47 1.1 christos set_board_info exit_is_reliable 1 48