Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)

-exec-interrupt
^error,msg="mi_cmd_exec_interrupt: Inferior not executing."
(gdb)
The -exec-next command
Synopsis
-exec-next
Asynchronous command. Resumes execution of the inferior program, stopping when the beginning
of the next source line is reached.
GDB command
The corresponding GDB command is 'next'.
Example
-exec-next
^running
(gdb)
*stopped,reason="end-stepping-range",thread-id="1",frame=addr="0x00002a10",
func="main",args=[],file="hello.c",line="24"(gdb)
The -exec-next-instruction command
Synopsis
-exec-next-instruction
Asynchronous command. Executes one machine instruction. If the instruction is a function, call
continues until the function returns. If the program stops at an instruction in the middle of a source
line, the address will be printed as well.
GDB command
The corresponding GDB command is 'nexti'.
Example
(gdb)
-exec-next-instruction
^running
(gdb)
*stopped,reason="end-stepping-range",thread-
id="1",frame=addr="0x00002a14",func="main",args=[],file="hello.c",line="24"
(gdb)
The -exec-return command
Synopsis
-exec-return
Makes current function return immediately. Does not execute the inferior. Displays the new current
frame.
GDB command
The corresponding GDB command is return'.
254 The GDB/MI Interface