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

Table Of Contents
Asynchronous command. Resumes the execution of the inferior program until a breakpoint
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 command
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.
GDB command
The corresponding GDB command is 'finish'.
Example
Function returning void.
-exec-finish
^running
(gdb)
@hello from foo
*stopped,reason="function-finished",thread-id="1",frame=addr="0x000029ec",
func="main",args=[],file="hello.c",line="7file="hello.c",line="7"}
(gdb)
Function returning other than void. The name of the internal GDB variable storing the
result is printed, together with the value itself.
-exec-finish
^running
(gdb)
*stopped,reason="function-finished",thread-id="1",
frame=addr="0x000107b0",func="foo",
args=[name="a"],name="b",
file="recursive2.c",line="14"},
gdb-result-var="$1",return-value="0"
(gdb)
21.7 GDB/MI program control 331