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

Table Of Contents
The -target-detach command
Synopsis
-target-detach
Disconnect from the remote target. There is no output.
GDB command
The corresponding GDB command is 'detach'.
Example
(gdb)
-target-detach
^done
(gdb)
The -target-download command
Synopsis
-target-download
Loads the executable onto the remote target. It prints out an update message every half
second, which includes the fields:
'section' The name of the section.
'section-sent' The size of what has been sent so far for that section.
'section-size' The size of the section.
'total-sent' The total size of what was sent so far (the current and the previous
sections).
'total-size' The size of the overall executable to download.
Each message is sent as status record (see GDB/MI Output syntax” (page 307).
In addition, it prints the name and size of the sections, as they are downloaded. These
messages include the following fields:
'section' The name of the section.
'section-size' The size of the section.
'total-size' The size of the overall executable to download.
At the end, a summary is printed.
GDB command
The corresponding GDB command is 'load'.
21.11 GDB/MI Target Manipulation Commands 349