1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 09:45:39 +02:00

Bug 371198 - Fix a couple of stopAtMain test cases.

This commit is contained in:
Marc Khouzam 2012-03-01 10:08:19 -05:00
parent 1b1c505fd9
commit b971029699

View file

@ -148,9 +148,13 @@ public class BaseTestCase {
// Store the corresponding MI *stopped event // Store the corresponding MI *stopped event
fInitialStoppedEvent = (MIStoppedEvent)miEvent; fInitialStoppedEvent = (MIStoppedEvent)miEvent;
// Check the content of the frame for "main" // Check the content of the frame for the method we should stop at
String stopAt = (String)launchAttributes.get(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL);
if (stopAt == null) stopAt = "main";
MIFrame frame = fInitialStoppedEvent.getFrame(); MIFrame frame = fInitialStoppedEvent.getFrame();
if (frame != null && "main".equals(frame.getFunction())) { if (frame != null &&
frame.getFunction() != null && frame.getFunction().indexOf(stopAt) != -1) {
// Set the event semaphore that will allow the test to proceed // Set the event semaphore that will allow the test to proceed
synchronized (fTargetSuspendedSem) { synchronized (fTargetSuspendedSem) {
fTargetSuspended = true; fTargetSuspended = true;