当前位置: 技术问答>linux和unix
gdb又一问!watch i==50
来源: 互联网 发布时间:2015-03-04
本文导语: 程序中有个变量i 我需要当i == 50 的时候 程序停下来 在gdb时我输入watch i == 50 显示Watchpoint 2: i == 50 没问题 但当run 后 却出现了 Watchpoint 4 deleted because the program has left the block in which its expression is valid....
程序中有个变量i
我需要当i == 50 的时候 程序停下来
在gdb时我输入watch i == 50
显示Watchpoint 2: i == 50
没问题
但当run
后
却出现了
Watchpoint 4 deleted because the program has left the block in
which its expression is valid.
0x4000a181 in _dl_runtime_resolve () from /lib/ld-linux.so.2
为什么? 大虾给个指教
我需要当i == 50 的时候 程序停下来
在gdb时我输入watch i == 50
显示Watchpoint 2: i == 50
没问题
但当run
后
却出现了
Watchpoint 4 deleted because the program has left the block in
which its expression is valid.
0x4000a181 in _dl_runtime_resolve () from /lib/ld-linux.so.2
为什么? 大虾给个指教
|
www.gnu.org去下一份gdb文档吧,html格式的,很全面