target type parameters
targetcommand does not repeat if you press RET again after executing the command.
info files(see section Commands to specify files).
help target name
set gnutarget args
set gnutargetcommand. Unlike most
targetrefers to a program, not a machine.
See section Commands to specify files.
Warning: To specify a file format with
set gnutarget, you must know the actual BFD name.
show gnutargetcommand to display what file format
gnutargetis set to read. If you have not set
gnutarget, GDB will determine the file format for each file automatically, and
show gnutargetdisplays `The current BDF target is "auto"'.
Here are some common targets (available, or not, depending on the GDB configuration):
target exec program
target core filename
target remote dev
target remotesupports the
loadcommand. This is only useful if you have some other way of getting the stub to the target system, and you can put it somewhere in memory where it won't get clobbered by the download.
target sim load runworks; however, you cannot assume that a specific memory map, device drivers, or even basic I/O is available, although some simulators do provide these. For info about any processor-specific simulator details, see the appropriate section in section Embedded Processors.
Some configurations may include these targets as well:
target nrom dev
Different targets are available on different configurations of GDB; your configuration may have more or fewer targets.
Many remote targets require you to download the executable's code once you've successfully established a connection.
loadcommand may be available. Where it exists, it is meant to make filename (an executable) available for debugging on the remote system--by downloading, or dynamic linking, for example.
loadalso records the filename symbol table in GDB, like the
add-symbol-filecommand. If your GDB does not have a
loadcommand, attempting to execute it gets the error message "
You can't do that when your target is ..." The file is loaded at whatever address is specified in the executable. For some object file formats, you can specify the load address when you link the program; for other formats, like a.out, the object file format specifies a fixed address.
loaddoes not repeat if you press RET again after using it.
Go to the first, previous, next, last section, table of contents.