Bug 383726 - c/c++ watchpoint of a local variable can not be installed in the next debug session.
Summary: c/c++ watchpoint of a local variable can not be installed in the next debug s...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 8.0   Edit
Hardware: PC All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 03:08 EDT by weixiang CLA
Modified: 2020-09-04 15:24 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description weixiang CLA 2012-06-28 03:08:28 EDT
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.