mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 01:36:01 +02:00
Bug 532077: Preserve Ignore Count set in the platform breakpoint
Change-Id: I19ad64254b0e9ed55114f2e83fe2f09e2aeac83c
This commit is contained in:
parent
090fc94fa0
commit
3cf0297769
2 changed files with 0 additions and 24 deletions
|
@ -756,9 +756,6 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI
|
||||||
if (!plBpt.getCondition().equals(miBpt.getCondition())) {
|
if (!plBpt.getCondition().equals(miBpt.getCondition())) {
|
||||||
plBpt.setCondition(miBpt.getCondition());
|
plBpt.setCondition(miBpt.getCondition());
|
||||||
}
|
}
|
||||||
if (plBpt.getIgnoreCount() != miBpt.getIgnoreCount()) {
|
|
||||||
plBpt.setIgnoreCount(miBpt.getIgnoreCount());
|
|
||||||
}
|
|
||||||
if (oldData.isPending() != miBpt.isPending()) {
|
if (oldData.isPending() != miBpt.isPending()) {
|
||||||
if (miBpt.isPending()) {
|
if (miBpt.isPending()) {
|
||||||
plBpt.decrementInstallCount();
|
plBpt.decrementInstallCount();
|
||||||
|
|
|
@ -566,22 +566,6 @@ public class GDBConsoleBreakpointsTest extends BaseParametrizedTestCase {
|
||||||
waitForBreakpointEvent(IBreakpointsUpdatedEvent.class);
|
waitForBreakpointEvent(IBreakpointsUpdatedEvent.class);
|
||||||
Assert.assertTrue(plBpt.isEnabled());
|
Assert.assertTrue(plBpt.isEnabled());
|
||||||
|
|
||||||
// Set the ignore count of the console breakpoint and
|
|
||||||
// verify that the platform breakpoint's ignore count
|
|
||||||
// is updated.
|
|
||||||
setConsoleBreakpointIgnoreCount(miBpts[0].getNumber(), 5);
|
|
||||||
flushCache.run();
|
|
||||||
waitForBreakpointEvent(IBreakpointsUpdatedEvent.class);
|
|
||||||
Assert.assertTrue(plBpt.getIgnoreCount() == 5);
|
|
||||||
|
|
||||||
// Reset the ignore count of the console breakpoint and
|
|
||||||
// verify that the platform breakpoint's ignore count
|
|
||||||
// is updated.
|
|
||||||
setConsoleBreakpointIgnoreCount(miBpts[0].getNumber(), 0);
|
|
||||||
flushCache.run();
|
|
||||||
waitForBreakpointEvent(IBreakpointsUpdatedEvent.class);
|
|
||||||
Assert.assertTrue(plBpt.getIgnoreCount() == 0);
|
|
||||||
|
|
||||||
// Set the condition of the console breakpoint and
|
// Set the condition of the console breakpoint and
|
||||||
// verify that the platform breakpoint's condition
|
// verify that the platform breakpoint's condition
|
||||||
// is updated.
|
// is updated.
|
||||||
|
@ -705,11 +689,6 @@ public class GDBConsoleBreakpointsTest extends BaseParametrizedTestCase {
|
||||||
queueConsoleCommand(String.format("%s %s", cmd, bpId));
|
queueConsoleCommand(String.format("%s %s", cmd, bpId));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setConsoleBreakpointIgnoreCount(String bpId, int ignoreCount) throws Throwable {
|
|
||||||
Assert.assertTrue(ignoreCount >= 0);
|
|
||||||
queueConsoleCommand(String.format("ignore %s %d", bpId, ignoreCount));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void setConsoleBreakpointCondition(String bpId, String condition) throws Throwable {
|
private void setConsoleBreakpointCondition(String bpId, String condition) throws Throwable {
|
||||||
queueConsoleCommand(String.format("condition %s %s", bpId, condition));
|
queueConsoleCommand(String.format("condition %s %s", bpId, condition));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue