gdb调试


gdb ./program

set args

l list

r run

c continue to next break point

b num/function name set break point

n next line

s next step, go into function

finish jump out a function

p print

info b view breakpoint info

delete num delete breakpoint

bt print program stack

f num goto stack

re restart the debug

你可能感兴趣的:(调试)