1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 389097: [breakpoints] Disabled state of Catchpoints at creation is

ignored 

Change-Id: I1c30fb7937ed4e35f22e18f7665c1daf5145ba37
Reviewed-on: https://git.eclipse.org/r/7699
Reviewed-by: John Cortell <john.cortell@freescale.com>
IP-Clean: John Cortell <john.cortell@freescale.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2012-09-10 11:11:14 -04:00
parent 00a88f7394
commit 7cc3de7acf

View file

@ -839,16 +839,12 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints, I
// Flag the event // Flag the event
getSession().dispatchEvent(new BreakpointAddedEvent(dmc), getProperties()); getSession().dispatchEvent(new BreakpointAddedEvent(dmc), getProperties());
// Break/Watch/Catchpoints that are disabled when set are delayed (we // Condition, ignore count and state cannot be specified at creation time.
// don't tell gdb about them until the user enables them). So, we shouldn't
// be here if this is a disabled breakpoint
assert ((Boolean)getProperty(attributes, IS_ENABLED, true)) == true;
// Condition, ignore count and cannot be specified at creation time.
// Therefore, we have to update the catchpoint if any of these is present // Therefore, we have to update the catchpoint if any of these is present
Map<String,Object> delta = new HashMap<String,Object>(); Map<String,Object> delta = new HashMap<String,Object>();
delta.put(CONDITION, getProperty(attributes, CONDITION, NULL_STRING)); delta.put(CONDITION, getProperty(attributes, CONDITION, NULL_STRING));
delta.put(IGNORE_COUNT, getProperty(attributes, IGNORE_COUNT, 0 )); delta.put(IGNORE_COUNT, getProperty(attributes, IGNORE_COUNT, 0 ));
delta.put(IS_ENABLED, getProperty(attributes, IS_ENABLED, true));
modifyBreakpoint(dmc, delta, rm, false); modifyBreakpoint(dmc, delta, rm, false);
} }