| Summary: | [breakpoints][cdi] Breakpoints in dlls are ignored for GDB older than 6.8 and for MacOS | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Marc Khouzam <marc.khouzam> | ||||
| Component: | cdt-debug-dsf-gdb | Assignee: | Project Inbox <cdt-debug-dsf-gdb-inbox> | ||||
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | a.broekhuis, malaperle, pawel.1.piech | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Marc Khouzam
Created attachment 177557 [details]
Start of solution #2
I can't spend any more time on this issue since it only affects older GDBs, but I thought I'd post a small patch that could be the start of solution #2, if someone felt it was the right way to go and worth the time.
The patch makes DSF-GDB use the CLI to set breakpoints. What it misses is to properly deal with the return output of the CLI 'break' command.
One must also use "set breakpoint pending on" but I think I'm gonna put that in DSF-GDB anyway, to help with breakpoints set in the console.
Oh, and one other problem with the posted patch is that creating a bp with an ignore count is not supported by the CLI. It would require the MIBreakpoints service to do it in two operations. This is what GDBBreakpoints_7_0 does for tracepoints and pass count. Since MacOS is running GDB 6.3, this bug also affects it. *** Bug 346809 has been marked as a duplicate of this bug. *** I've commented on the GDB bug related to GDB 7 and the Mac, and received a comment that I shouldn't expect GDB 7.2 etc to be fixed for the Mac in this case. Since I am running into the problems described at that bug, so using a newer GDB on OSX seems like a dead end for now... http://sourceware.org/bugzilla/show_bug.cgi?id=11488 (In reply to comment #3) > Since MacOS is running GDB 6.3, this bug also affects it. Apple's GDB has pending breakpoints. I will experiment with it to see if it's acceptable to use them exactly like we do for GDBs >= 6.8. |