[
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.
|
Hi,
DSF-GDB does not currently use BreakpointMediator but
it will in the near future (that's the plan
anyway)
You can immitate either MIBreakpointsManager
or BreakpointMediator (BreakpointMediator 2?) for your own
stuff.
As for deletion, you can look at how
MIBreakpointsManager#uninstallBreakpoint does it, which is to store the contexts
that correspond
to the platform breakpoint. The map you mentions
seems to be the right thing.
Marc
Hi,
Let me start by explaining what I want to do.
I want to programmatically insert breakpoints using DSF. I am using
Eclipse 3.5.2 along MinGW toolchain in Windows.
I am able to insert breakpoints using the IBreakpoints service provided
by DSF. Specifically the IBreakpoints.insertBreakpoint() method. However these
breakpoints are inserted on the target but cannot be seen in the Eclipse IDE.
There is a similar post which talks about breakpoints using DSF. However the
discussion says nothing about IDE breakpoints.
I went through the PDA example provided with the DSF plugins, but could
not find anything that will help me.
The PDA example talks about the Breakpoints Mediator, but I dont think it
is being used in the DSF - GDB plugin. Instead MIBreakpointManager is
used.
Can someone help me out or guide me in some way ?
The second issue is deleting breakpoints. I am able to delete breakpoints
successfully using DSF. However when it comes to deleting individual
breakpoints, I am stuck. I know I have to use IBreakpoints.removeBreakpoint().
But how do I get the specific IBreakpointDMContext ? Is there any
way I can acquire IBreakpointDMContext for a particular
breakpoint using the breakpoint attributes e.g. IBreakpointDMContext
corresponding to a breakpoint at line number 34 ?
After going through the source code I realized,
DSF uses a Map of some kind. Can I use that or some other way
?
Thanks for your help guys.
--
Regards,
Rohit
Girme