watchpoint in GDB

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2009-08-30T19:00:58Z Indexed on 2010/03/15 11:59 UTC
Read the original article Hit count: 309

Filed under:
|

Hi,

  1. If I set a watchpoint for a variable local to the current scope, it will be auto deleted when going out of the scope. Is there any way to set it once and keep it auto alive whenever entering the same scope?

  2. Is there anyway to set conditional watchpoint, like "watch var1 if var1==0"? In my case, the condition does't work. gdb stops whenever var1's value is changed, instead of untill "var1==0" is true. My gdb is GNU gdb 6.8-debian.

Thanks and regards!

© Stack Overflow or respective owner

Related posts about gdb

Related posts about watchpoint