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.
Not all remote targets support these commands.
remote put hostfile targetfile
hostfile from the host system (the machine running
targetfile on the target system.
remote get targetfile hostfile
targetfile from the target system to
on the host system.
remote delete targetfile
targetfile from the target system.