HP gnu source-level debugger 5992-4701 User Manual

Page 336

Advertising
background image

Regular stepping:

-exec-step
^running
(gdb)
~"2"
~"3"
*stopped,reason="end-stepping-range",thread-id="1",frame=addr="0x000029d8",
func="call",args=[name="a",name="b"],file="hello.c",line="16"
(gdb)

The -exec-step-instruction command

Synopsis

-exec-step-instruction

Asynchronous command. Resumes the inferior which executes one machine instruction.
The output, once GDB has stopped, will vary depending on whether we have stopped
in the middle of a source line or not. In the former case, the address at which the
program stopped will be printed as well.

GDB command

The corresponding GDB command is 'stepi'.

Example

(gdb)
-exec-step-instruction
^running
(gdb)
~"2"
~"3"
*stopped,reason="end-stepping-range",thread-id="1",frame=addr="0x000029dc",
func="call",args=[name="a",name="b"],file="hello.c",line="16"

(gdb)
-exec-step-instruction
^running

(gdb)
*stopped,reason="end-stepping-range",
frame={addr="0x000100f4",func="foo",args=[],file="try.c",line="10"}
(gdb)

The -exec-until command

Synopsis

-exec-until [ location ]

Asynchronous command. Executes the inferior until the location specified in the
argument is reached. If there is no argument, the inferior executes until a source line

336

The GDB/MI Interface

Advertising