Community
Participate
Working Groups
Build Identifier: I20110613-1736 c/c++ watchpoint of a local variable can not be installed in the next debug session. Reproducible: Always Steps to Reproduce: 1.Create a C project with a file "test.c". 2.Write a main function like that below. int main() { printf("make a line breakpoint on this line!\n"); int a = 10; a = a + 10; return i; } 3.Build and start a debug session with gdb (I tried 7.2 and 7.3). 4.Add a line breakpoint on the line startwith "printf" and let the thread stop at the line. 5.Add a C/C++ watchpoint at the variable of "a".(This time, the watchpoint is installed). 6.Stop and restart a debug session. The line breakpoint is installed, but the watchpoint is not.