| Summary: | [breakpoints] Cannot set breakpoints for GDB 7.0 or 7.1 | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> |
| Component: | cdt-debug-dsf-gdb | Assignee: | Marc Khouzam <marc.khouzam> |
| Status: | RESOLVED FIXED | QA Contact: | Marc Khouzam <marc.khouzam> |
| Severity: | major | ||
| Priority: | P3 | CC: | cdtdoug, m.kudimov, pawel.1.piech, peh |
| Version: | 8.4.0 | ||
| Target Milestone: | 8.7.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://git.eclipse.org/r/44028 https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9f27d7cc2062b11e021043497e43f60de926fdeb |
||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 457843 | ||
|
Description
Marc Khouzam
I pushed a fix to gerrit: https://git.eclipse.org/r/44028 The patch creates a new GDBBreakpointsManager_7_0 and GDBBreakpointsManager_7_2 to only affect GDB 7.0 and 7.1. For those two versions, the problem was that the BreakpointsManager service would store the IBreakpointsTargetDMContext before the pid was allocated. The patch listens for an IStartedDMEvent for the process, which will old the pid, and replaces every IBreakpointsTargetDMContext it holds with the new IBreakpointsTargetDMContext now containing the pid. All changes in MIBreakpointsManager are to allow extending the class and naming some fields more clearly. Gerrit change https://git.eclipse.org/r/44028 was merged to [master]. Commit: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9f27d7cc2062b11e021043497e43f60de926fdeb Thanks Alvaro for the review. |