Skip to content

Latest commit

 

History

History
63 lines (32 loc) · 512 Bytes

gdb.md

File metadata and controls

63 lines (32 loc) · 512 Bytes

Info

i

Run with arguments

r arg1 arg2 ... argn

Delete a breakpoint #

d #

Enable/disable breakpoint #

enable/disable #

Step over next line

n

Step into next line

s

Continue

c

Finish current function and return

finish

Display variable each step

disp

Print variable once

print

Format-print variable once

printf

Show stack/back trace

bt

Run to command/line/breakpoint

advance

Read core dump file

-c <corefile>

Jump to frame

f #

Print type info

ptype var