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:
parent
00a88f7394
commit
7cc3de7acf
1 changed files with 2 additions and 6 deletions
|
@ -839,16 +839,12 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints, I
|
|||
// Flag the event
|
||||
getSession().dispatchEvent(new BreakpointAddedEvent(dmc), getProperties());
|
||||
|
||||
// Break/Watch/Catchpoints that are disabled when set are delayed (we
|
||||
// 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.
|
||||
// Condition, ignore count and state cannot be specified at creation time.
|
||||
// Therefore, we have to update the catchpoint if any of these is present
|
||||
Map<String,Object> delta = new HashMap<String,Object>();
|
||||
delta.put(CONDITION, getProperty(attributes, CONDITION, NULL_STRING));
|
||||
delta.put(IGNORE_COUNT, getProperty(attributes, IGNORE_COUNT, 0 ));
|
||||
delta.put(IS_ENABLED, getProperty(attributes, IS_ENABLED, true));
|
||||
modifyBreakpoint(dmc, delta, rm, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue