[
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,
Thanks, all of you.
With your help I was able to programmatically insert a breakpoint such that it shows in the IDE and target. CDIDebugModel did it and it works with DSF.
I also was trying to programmatically insert a breakpoint using the IAddress and function name. I had done it at a lower level using IBreakpoints service. But it does not show in the IDE. So I tried using CDIDebugModel.
The methods CDIDebugModel#createFunctionBreakpoint and CDIDebugModel#createAddressBreakpoint have an argument called lineNumber.
If I assign '-1' to lineNumber as the documentation says, the breakpoint is added on target side but not in IDE. I guess it requires lineNumber to decide where to insert the IMarker in the IDE. But when I insert breakpoint programmatically using IAddress or function name, I just have that information and no line number.
Does anyone have an idea what do I do ?
Regards,
Rohit
On Thu, Jul 15, 2010 at 2:57 PM, Marc Khouzam
<marc.khouzam@xxxxxxxxxxxx> wrote:
Right. I remember now. DSF-GDB calls CDIDebugModel#createLineBreakpoint() to create a breakpoint from the editor or disassembly view and that that automatically kicks MIBreakpointsManager.
Thanks Ed
Hi Rohit,
I looked through the source code for some platform API to insert breakpoints. However those methods require IBreakpoint as an argument. I cannot create an IBreakpoint as that interface and all the implementing classes are in internal packages. Hence I cannot access them.
...
I dont want to add a breakpoint only in the UI. I want to add a breakpoint such that it is reflected in the IDE and target.
Given this, maybe you're still looking at a level too low. A breakpoint is an Eclipse resource marker (IResource#createMarker). If you create a marker, this will make it show up in the UI and be propagated to the lower levels.
Try using org.eclipse.cdt.debug.coe.CDIDebugModel#createLineBreakpoint() as an example. (Note: although it says "CDI", this kind of breakpoint is honored by any debugger.)
-- Ed
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
--
Thanks & Regards,
Rohit Girme