Example

(gdb)

-break-insert main ^done,bkpt=number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00002a08", func="main",file="hello.c",line="23",times="0"

(gdb)

-exec-run ^running (gdb)

*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame=addr="0x00002a08", func="main",args=[],file="hello.c",line="23"

(gdb)

The -exec-show-arguments command

Synopsis

-exec-show-arguments

Prints the arguments of the program.

GDB command

The corresponding GDB command is 'show args'.

Example

N.A.

The -exec-stepCommand

Synopsis

-exec-step

Asynchronous command. Resumes execution of the inferior program, stopping when the beginning of the next source line is reached, if the next source line is not a function call. If it is, stop at the first instruction of the called function.

GDB command

The corresponding GDB command is 'step'.

Example

Stepping into a function:

-exec-step ^running (gdb)

~"2"

~"3" *stopped,reason="end-stepping-range",thread-id="1",frame=addr="0x000029d0", func="call",args=[name="a",name="b"],file="hello.c",line="15"

(gdb)

21.7 GDB/MI program control 335

Page 335
Image 335
HP gnu source-level debugger 5992-4701 manual exec-show-arguments command, Example -exec-stepCommand Synopsis