本文共 356 字,大约阅读时间需要 1 分钟。
# breakpoint
(gdb) b filename:line (gdb) b namespace::classname::function (gdb) watch val# function call stack
(gdb) bt# step into
(gdb) s# step over
(gdb) n# step out
(gdb) finish# continue running
(gdb) c# run
(gdb) r# display
(gdb) display valname# attach to a process
(gdb) attach pid # detach (gdb) detach# quit
(gdb) q转载地址:http://qcuqi.baihongyu.com/