Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2012-01-25 15:56:28 -0500
committerMarc Khouzam2012-01-26 22:01:09 -0500
commitbb313cb149f80329427a974d14237c27ac5f4975 (patch)
treeecb531cd7f07049155164c2f7d661690f4e31ff4
parentb4230c0fffc31c76245d59c094b837c199887d86 (diff)
downloadorg.eclipse.cdt-bb313cb149f80329427a974d14237c27ac5f4975.tar.gz
org.eclipse.cdt-bb313cb149f80329427a974d14237c27ac5f4975.tar.xz
org.eclipse.cdt-bb313cb149f80329427a974d14237c27ac5f4975.zip
Need to wait for a IBreakpointHit event instead of an ISuspended event. This is for remote tests where we get an ISuspended event when we first connect to gdbserver, but we really need the IBreakpointHit event of when we hit the breakpoint at main()
-rw-r--r--dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java
index dc0dd55aeb..f8c3b32ba1 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/BaseTestCase.java
@@ -18,7 +18,7 @@ import java.util.Map;
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.dsf.datamodel.IDMEvent;
-import org.eclipse.cdt.dsf.debug.service.IRunControl.ISuspendedDMEvent;
+import org.eclipse.cdt.dsf.debug.service.IBreakpointsExtension.IBreakpointHitDMEvent;
import org.eclipse.cdt.dsf.gdb.IGDBLaunchConfigurationConstants;
import org.eclipse.cdt.dsf.gdb.launching.GdbLaunch;
import org.eclipse.cdt.dsf.mi.service.command.events.MIStoppedEvent;
@@ -122,7 +122,11 @@ public class BaseTestCase {
fInitialStoppedEvent = (MIStoppedEvent)event;
}
}
- else if (event instanceof ISuspendedDMEvent) {
+ else if (event instanceof IBreakpointHitDMEvent) {
+ // We need to wait for a breakpoint event, not just a suspended event,
+ // this is because for remote tests, there is a suspended event when
+ // we connect, and then, there is the breakpoint event at main()
+
// We get this higher level event shortly thereafter. We don't want
// to consider the session suspended until we get it. Set the event
// semaphore that will allow the test to proceed

Back to the top