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:
parent
1b1c505fd9
commit
b971029699
1 changed files with 6 additions and 2 deletions
|
@ -148,9 +148,13 @@ public class BaseTestCase {
|
|||
// Store the corresponding MI *stopped event
|
||||
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();
|
||||
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
|
||||
synchronized (fTargetSuspendedSem) {
|
||||
fTargetSuspended = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue