Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Breakpoints inserted using DSF not reflected in IDE.

> @Marc
>  
> Hi,
>  
> DSF-GDB does not currently use BreakpointMediator but it will 
> in the near future (that's the plan anyway)
> 219604: [breakpoints] Modify MIBreakpointsManager to extend 
> BreakpointMediator 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=219604 
> <https://bugs.eclipse.org/bugs/show_bug.cgi?id=219604> 
> You can immitate either MIBreakpointsManager  or 
> BreakpointMediator (BreakpointMediator 2?) for your own stuff.
> 
> In CDI, ICDITarget.setLineBreakpoint was enough to create a 
> breakpoint on IDE and target. Is there something similar in 
> DSF. I know IBreakpoints is used for breakpoints, but that is 
> only on the target side not the IDE side.
> The current MIBreakpointsManager works for GDB and MinGW. 
> Since I am using MinGW, I want to know if there is a way to 
> use existing MIBreakpointsManager or any other class which 
> will insert breakpoints on target and IDE, instead of 
> extending or immitating MIBreakpointsManager.

If you can programatically add a breakpoint to the IDE,
DSF-GDB should automatically add it in the target.
To add one programatically you would have to see how the 
platform requires you to do it.  I don't personally know.

> I did look at the method you mentioned. That method uses an 
> ICBreakpoint. I only have access to IBreakpointDMContext and 
> IBreakpointDMData.
> However my question was how I can use the Maps (they are all 
> private). Or I have to define my own Maps ? 

Maybe, again, the solution would be to delete the bp in the IDE
and then MIBreakpointsManager would automatically remove the
ones on the target.

Marc


Back to the top