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:
parent
a8fe7f6a27
commit
e3c41f15c5
1 changed files with 10 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue