Next: Remote Stub, Previous: Server, Up: Remote Debugging
This section documents the configuration options available when debugging remote programs. For the options related to the File I/O extensions of the remote protocol, see system-call-allowed.
set remoteaddresssize bitsshow remoteaddresssizeset remotebaud nshow remotebaudset remotebreakBREAK signal to the remote
when you type Ctrl-c to interrupt the program running
on the remote. If set to off, gdb sends the `Ctrl-C'
character instead. The default is off, since most remote systems
expect to see `Ctrl-C' as the interrupt signal.
show remotebreakBREAK or `Ctrl-C' to
interrupt the remote program.
set remoteflow onset remoteflow offRTS/CTS)
on the serial port used to communicate to the remote target.
show remoteflowset remotelogbase baseascii, octal, and hex. The default is
ascii.
show remotelogbaseset remotelogfile fileshow remotelogfile.set remotetimeout numshow remotetimeoutset remote hardware-watchpoint-limit limitset remote hardware-breakpoint-limit limitset remote exec-file filenameshow remote exec-filerun with target
extended-remote. This should be set to a filename valid on the
target system. If it is not set, the target will use a default
filename (e.g. the last program run).
The gdb remote protocol autodetects the packets supported by your debugging stub. If you need to override the autodetection, you can use these commands to enable or disable individual packets. Each packet can be set to `on' (the remote target supports this packet), `off' (the remote target does not support this packet), or `auto' (detect remote target support for this packet). They all default to `auto'. For more information about each packet, see Remote Protocol.
During normal use, you should not have to use any of these commands. If you do, that may be a bug in your remote debugging stub, or a bug in gdb. You may want to report the problem to the gdb developers.
For each packet name, the command to enable or disable the
packet is set remote name-packet. The available settings
are:
| Command Name | Remote Packet | Related Features
|
fetch-register
| p
| info registers
|
set-register
| P
| set
|
binary-download
| X
| load, set
|
read-aux-vector
| qXfer:auxv:read
| info auxv
|
symbol-lookup
| qSymbol
| Detecting multiple threads
|
attach
| vAttach
| attach
|
verbose-resume
| vCont
| Stepping or resuming multiple threads
|
run
| vRun
| run
|
software-breakpoint
| Z0
| break
|
hardware-breakpoint
| Z1
| hbreak
|
write-watchpoint
| Z2
| watch
|
read-watchpoint
| Z3
| rwatch
|
access-watchpoint
| Z4
| awatch
|
target-features
| qXfer:features:read
| set architecture
|
library-info
| qXfer:libraries:read
| info sharedlibrary
|
memory-map
| qXfer:memory-map:read
| info mem
|
read-spu-object
| qXfer:spu:read
| info spu
|
write-spu-object
| qXfer:spu:write
| info spu
|
get-thread-local-
| qGetTLSAddr
| Displaying __thread variables
|
supported-packets
| qSupported
| Remote communications parameters
|
pass-signals
| QPassSignals
| handle signal
|
hostio-close-packet
| vFile:close
| remote get, remote put
|
hostio-open-packet
| vFile:open
| remote get, remote put
|
hostio-pread-packet
| vFile:pread
| remote get, remote put
|
hostio-pwrite-packet
| vFile:pwrite
| remote get, remote put
|
hostio-unlink-packet
| vFile:unlink
| remote delete
|