gdb 断点技巧

2018-08-07  本文已影响0人  413x

gdb 断点技巧

多种下断点方式

break location:location can specify a function name, line number, or address of an intruction

break:sets a break pint at the next instruction to be executed in the selected stack frame

break ... if cond: set a break point with condition cond

tbreak args: set a breakpoint enabled only for on stop

hbreak args: hardware-assisted breakpoint

thbreak args: set a hardware-assisted break pint enable only for one stop

rbreak rgex

rbreak file:regex

info breakpoints [list]

命中断点执行指令

break cond
commands
....
end
上一篇下一篇

猜你喜欢

热点阅读