Automatic Copyright Year update after running gdb/copyright.py
[deliverable/binutils-gdb.git] / gdb / testsuite / config / gdbserver.exp
CommitLineData
88b9d363 1# Copyright 2000-2022 Free Software Foundation, Inc.
ae0323a8 2
c906108c
SS
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
e22f8b7c 5# the Free Software Foundation; either version 3 of the License, or
c906108c 6# (at your option) any later version.
e22f8b7c 7#
c906108c
SS
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
e22f8b7c 12#
c906108c 13# You should have received a copy of the GNU General Public License
e22f8b7c 14# along with this program. If not, see <http://www.gnu.org/licenses/>.
ae0323a8 15
6f8eac0e
DJ
16# Test framework for GDB (remote protocol) using a "gdbserver",
17# ie. a debug agent running as a native process on the same or
18# a different host.
ae0323a8
MS
19
20#
21# This module to be used for testing gdb with a "gdbserver"
22# built either from libremote or from gdb/gdbserver.
23#
24
ae0323a8
MS
25#
26# To be addressed or set in your baseboard config file:
c906108c 27#
ae0323a8
MS
28# set_board_info gdb_protocol "remote"
29# Unles you have a gdbserver that uses a different protocol...
c906108c 30#
ae0323a8
MS
31# set_board_info use_gdb_stub 1
32# This tells the rest of the test suite not to do things
33# like "run" which don't work well on remote targets.
c906108c 34#
ae0323a8
MS
35# set_board_info gdb,do_reload_on_run 1
36# Unles you have a gdbserver that can handle multiple sessions.
c906108c 37#
ae0323a8 38# set_board_info noargs 1
75d04512
SM
39# Set this if the board does not support passing arguments to the
40# inferior process.
ae0323a8
MS
41#
42# set_board_info gdb,noinferiorio 1
43# Neither the traditional gdbserver nor the one in libremote
44# can presently capture stdout and relay it to GDB via the
45# 'O' packet. This means that tests involving printf will
46# fail unles you set this varibale in your baseboard
47# configuration file.
48#
49# set_board_info gdb,no_hardware_watchpoints 1
50# Unles you have a gdbserver that supports hardware watchpoints.
51# FIXME: gdb should detect if the target doesn't support them,
52# and fall back to using software watchpoints.
53#
54# set_board_info gdb_server_prog
55# This will be the path to the gdbserver program you want to test.
56# Defaults to "gdbserver".
57#
58# set_board_info sockethost
59# The name of the host computer whose socket is being used.
60# Defaults to "localhost". Note: old gdbserver requires
61# that you define this, but libremote/gdbserver does not.
62#
6f8eac0e 63# set_board_info gdb,socketport
ae0323a8
MS
64# Port id to use for socket connection. If not set explicitly,
65# it will start at "2345" and increment for each use.
66#
67
6f8eac0e 68# The guts live in gdbserver-support.exp now.
c906108c 69
6f8eac0e 70load_lib gdbserver-support.exp
c906108c 71
b741e217
DJ
72proc gdbserver_gdb_load { } {
73 return [gdbserver_spawn ""]
da6012e5
DJ
74}
75
75d04512
SM
76proc gdb_reload { {inferior_args {}} } {
77 return [gdbserver_run $inferior_args]
c906108c 78}
b0f4b84b
DJ
79
80proc gdb_reconnect { } {
81 return [gdbserver_reconnect]
82}
This page took 2.849516 seconds and 4 git commands to generate.