Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
names or host names to connect with, process
numbers, and baud rates.
The target command does not repeat if you
press RET again after executing the command.
help target Displays the names of all targets available. To
display targets currently selected, use either info
target or info files (see “Commands to specify
files” (page 118)).
help target name Describe a particular target, including any
parameters necessary to select it.
set gnutarget args GDB uses its own library BFD to read your files.
GDB knows whether it is reading an executable,
a core, or a .o file; however, you can specify
the file format with the set gnutarget command.
Unlike most target commands, with gnutarget
the target refers to a program, not a machine.
Warning: To specify a file format with set
gnutarget, you must know the actual BFD name.
See “Commands to specify files” (page 118).
show gnutarget Use the show gnutarget command to display
what file format gnutarget is set to read. If you
have not set gnutarget, GDB will determine the
file format for each file automatically, and show
gnutarget displays `The current BDF target is
"auto"'.
set architecture arch When GDB is built for several different target
architectures, you can choose one of the available
architectures with the set architecture command.
This command sets the current target architecture
to arch. The value of arch can be auto, in
addition to one of the supported architectures.
show architecture This command displays the current target
architecture.
set download-write-size size Use the set download-write-size size
command to set the write size used when
downloading a program. This command is used
when downloading a program onto a remote
target. You can specify zero or a negative value
to disable blocked writes. The actual size of each
13.2 Commands for managing targets 127