HP (Hewlett-Packard) 5992-4701 Computer Hardware User Manual


 
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'.
Example
(gdb)
-break-insert call1
^done,bkpt=number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000029ac",
func="call1",file="hello.c",line="9",times="0"
(gdb)
-exec-run
^running
(gdb)
~"3"
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame=addr="0x000029ac",
func="call1",args=[name="a"],file="hello.c",line="9"
(gdb)
-exec-return
~"2"
~"3"
^done,frame=level="0 ",addr="0x000029e8",func="call",args=[name="a",name="b"],
file="hello.c",line="17"
(gdb)
The -exec-run command
Synopsis
-exec-run
Asynchronous command. Starts execution of the inferior from the beginning. The
inferior executes until either a breakpoint is encountered or the program exits.
GDB command
The corresponding GDB command is 'run'.
334 The GDB/MI Interface