Skip to main content
diff options
authorMarc Khouzam2012-01-25 15:56:28 -0500
committerMarc Khouzam2012-01-26 22:01:09 -0500
commitbb313cb149f80329427a974d14237c27ac5f4975 (patch)
parentb4230c0fffc31c76245d59c094b837c199887d86 (diff)
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()
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/ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/
index dc0dd55aeb..f8c3b32ba1 100644
--- a/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/
+++ b/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/src/org/eclipse/cdt/tests/dsf/gdb/framework/
@@ -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;
@@ -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