Community
Participate
Working Groups
Build Identifier: 20110916-0149 I am implementing a custom DSF debugger plugin that supports multi-core targets. If breakpoints are set on multiple cores, the disassembly view displays all breakpoints no matter which cores the breakpoints are set on. I want to hide the breakpoints that are not set on the core that the disassembly view is pinned to. To fix this, I added a breakpoint adapter that implements implements the IBreakpointLocationProvider interface and planned to return null for the breakpoints whose core does not match the core that the disassembly view is pinned to. It is not possible to do this with the current IBreakpointLocationProvider interface. The problem is that the adapter needs the target/viewsite in order to look up the context that the disassembly view is pinned to so the target/viewsite should be added as a parameter to the methods in IBreakpointLocationProvider. Reproducible: Always
The IBreakpointLocationProvider is a provisional interface, is it ok if I add a parameter to the existing API? Or I need to create a new interface and provide the same API with the additional parameter?
(In reply to comment #1) > The IBreakpointLocationProvider is a provisional interface, is it ok if I add a > parameter to the existing API? Or I need to create a new interface and provide > the same API with the additional parameter? AFAIK there are no clients of the API except TI, so I think you can change it in place. A short notice on cdt-dev would be good, though.
Created attachment 210397 [details] patch Norman, can you take a look at the patch and see whether this is all you need?
The patch works for me. Thanks Patrick!
Looks good.
Committed patch to master.
*** cdt git genie on behalf of Patrick Chuong *** Bug 369998 - IBreakpointLocationProvider methods need a target or viewsite parameter [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=2e5c77c1ab91a033296cfab467d53c1c9a260e54