1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 06:35:28 +02:00

Bug 237464

MIInferiorProcess.InferiorStartedDMEvent should also be sent in the case where a startup breakpoint is not set.
This commit is contained in:
Marc Khouzam 2008-06-17 13:45:22 +00:00
parent a8fe7f6a27
commit e3c41f15c5

View file

@ -337,9 +337,17 @@ public class GDBControl extends AbstractMIControl {
return;
}
final DataRequestMonitor<MIInfo> execMonitor = new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) {
@Override
protected void handleSuccess() {
getSession().dispatchEvent(new InferiorStartedDMEvent(getGDBDMContext()), getProperties());
super.handleSuccess();
}
};
if (!stopInMain) {
// Just start the program.
queueCommand(execCommand, new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
queueCommand(execCommand, execMonitor);
} else {
String stopSymbol = null;
try {
@ -357,16 +365,7 @@ public class GDBControl extends AbstractMIControl {
@Override
protected void handleSuccess() {
// After the break-insert is done, execute the -exec-run or -exec-continue command.
queueCommand(
execCommand,
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) {
@Override
protected void handleSuccess() {
getSession().dispatchEvent(
new InferiorStartedDMEvent(getGDBDMContext()), getProperties());
super.handleSuccess();
}
});
queueCommand(execCommand, execMonitor);
}
});
}