gdb 如何跳过断点

gdb 如何跳过断点?

方法一

(gdb) continue 50
(gdb) help continue
Continue program being debugged, after signal or breakpoint.
Usage: continue [N]
If proceeding from breakpoint, a number N may be used as an argument,
which means to set the ignore count of that breakpoint to N - 1 (so that
the breakpoint won't break until the Nth time it is reached).

If non-stop mode is enabled, continue only the current thread,
otherwise all the threads in the program are continued.  To 
continue all stopped threads in non-stop mode, use the -a option.
Specifying -a and an ignore count simultaneously is an error.

方法二

 (gdb) ignore 8 100   # 忽略 8 号断点,100 次
 (gdb) c              # 继续执行
 (gdb) info break 8   # 断下之后,查看命中次数,和设置的相同
 (gdb) help ignore
  Set ignore-count of breakpoint number N to COUNT.
  Usage is `ignore N COUNT'.

参考

官方文档

上一篇:[PowerCLI]The request channel timed out attempting to send after 00:05:00


下一篇:[转]Windows 8.1删除这台电脑中视频/文档/下载等六个文件夹的方法