Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2018-11-18 11:54:20 +0000
committerJonah Graham2018-11-18 12:36:44 +0000
commit3cf0297769e5cfb91823e93ce570120a75fe01ce (patch)
treed5218a42549ca93e3e4c8aa46a71fe12847108c4 /dsf-gdb
parent090fc94fa0c460745d9498c8b770ba5cac87627d (diff)
downloadorg.eclipse.cdt-3cf0297769e5cfb91823e93ce570120a75fe01ce.tar.gz
org.eclipse.cdt-3cf0297769e5cfb91823e93ce570120a75fe01ce.tar.xz
org.eclipse.cdt-3cf0297769e5cfb91823e93ce570120a75fe01ce.zip
Bug 532077: Preserve Ignore Count set in the platform breakpoint
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java3
-rw-r--r--dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java21
2 files changed, 0 insertions, 24 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java
index f2bacbcb11e..76b6b83aa5a 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsSynchronizer.java
@@ -756,9 +756,6 @@ public class MIBreakpointsSynchronizer extends AbstractDsfService implements IMI
if (!plBpt.getCondition().equals(miBpt.getCondition())) {
plBpt.setCondition(miBpt.getCondition());
}
- if (plBpt.getIgnoreCount() != miBpt.getIgnoreCount()) {
- plBpt.setIgnoreCount(miBpt.getIgnoreCount());
- }
if (oldData.isPending() != miBpt.isPending()) {
if (miBpt.isPending()) {
plBpt.decrementInstallCount();
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java
index 9807f28e5b5..6365b5e2dbb 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/tests/GDBConsoleBreakpointsTest.java
@@ -566,22 +566,6 @@ public class GDBConsoleBreakpointsTest extends BaseParametrizedTestCase {
waitForBreakpointEvent(IBreakpointsUpdatedEvent.class);
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
// verify that the platform breakpoint's condition
// is updated.
@@ -705,11 +689,6 @@ public class GDBConsoleBreakpointsTest extends BaseParametrizedTestCase {
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 {
queueConsoleCommand(String.format("condition %s %s", bpId, condition));
}

Back to the top