Example
(gdb)
111-exec-continue
111^running
(gdb)
222-exec-interrupt
222^done
(gdb)
111*stopped,signal-name="SIGINT",signal-meaning="Interrupt",
frame={addr="0x00010140",func="foo",args=[],file="try.c",line="13"}
(gdb)
(gdb)
-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'.
21.7 GDB/MI program control 333