20.2 Sending files to a remote system
Some remote targets offer the ability to transfer files over the same
connection used to communicate with gdb. This is convenient
for targets accessible through other means, e.g. gnu/Linux systems
gdbserver over a network interface. For other targets,
e.g. embedded devices with only a single serial port, this may be
the only way to upload or download files.
remote puthostfile targetfile
- Copy file hostfile from the host system (the machine running gdb) to targetfile on the target system.
remote gettargetfile hostfile
- Copy file targetfile from the target system to hostfile on the host system.
- Delete targetfile from the target system.