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?
Is there anyway to set conditional watchpoint, like
watch var1 if var1==0? In my case, the condition does't work. gdb stops whenevervar1's value is changed, instead of untillvar1 == 0is true. My gdb is GNU gdb 6.8-debian.