Debugging with GDB (September 2007)
Chapter 21: The gd b/mi Interface 291
The -exec-arguments command
Synopsis
-exec-arguments args
Set the inferior program arguments, to be used in the next ‘-exec-run’.
GDB command
The corresponding GDB command is ‘set args’.
Example
Donot have one around.
The -exec-continue command
Synopsis
-exec-continue
Asynchronous command. Resumes the execution of the inferior program until a break-
point is encountered, or until the inferior exits.
GDB command
The corresponding GDB is ‘continue’.
Example
-exec-continue
^running
(gdb)
@Hello world
*stopped,reason="breakpoint-hit",bkptno="2",thread-id="1",frame=addr="0x000029d8",
func="foo",args=[],file="hello.c",line="16"file="hello.c",line="13"}
(gdb)
The -exec-finish comm and
Synopsis
-exec-finish
Asynchronous command. Resumes the execution of the inferior program until the current
function is exited. Displays the results returned by the function.