mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 332605: MIBreakpointsManager convertToTargetBreakpoint didn't convert the breakpoint type attribute
This commit is contained in:
parent
b7661cd1bf
commit
146d6d2d78
1 changed files with 12 additions and 0 deletions
|
@ -30,6 +30,7 @@ import org.eclipse.cdt.debug.core.breakpointactions.BreakpointActionManager;
|
|||
import org.eclipse.cdt.debug.core.model.ICAddressBreakpoint;
|
||||
import org.eclipse.cdt.debug.core.model.ICBreakpoint;
|
||||
import org.eclipse.cdt.debug.core.model.ICBreakpointExtension;
|
||||
import org.eclipse.cdt.debug.core.model.ICBreakpointType;
|
||||
import org.eclipse.cdt.debug.core.model.ICEventBreakpoint;
|
||||
import org.eclipse.cdt.debug.core.model.ICLineBreakpoint;
|
||||
import org.eclipse.cdt.debug.core.model.ICTracepoint;
|
||||
|
@ -1742,6 +1743,17 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
|
|||
properties.put(MIBreakpoints.BREAKPOINT_TYPE, MIBreakpoints.TRACEPOINT);
|
||||
properties.put(MIBreakpoints.PASS_COUNT, attributes.get(ICTracepoint.PASS_COUNT));
|
||||
}
|
||||
|
||||
// checks for the breakpoint type, and adds the hardware/temporary flags
|
||||
Object breakpointType = attributes.get(ICBreakpointType.TYPE);
|
||||
if(breakpointType != null) {
|
||||
if(breakpointType instanceof Integer) {
|
||||
boolean isHardware = ((Integer) breakpointType & ICBreakpointType.HARDWARE) == ICBreakpointType.HARDWARE;
|
||||
boolean isTemporary = ((Integer) breakpointType & ICBreakpointType.TEMPORARY) == ICBreakpointType.TEMPORARY;
|
||||
properties.put(MIBreakpointDMData.IS_HARDWARE, isHardware);
|
||||
properties.put(MIBreakpointDMData.IS_TEMPORARY, isTemporary);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (breakpoint instanceof ICEventBreakpoint) {
|
||||
properties.put(MIBreakpoints.BREAKPOINT_TYPE, MIBreakpoints.CATCHPOINT);
|
||||
|
|
Loading…
Add table
Reference in a new issue