mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 13:35:22 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final DataRequestMonitor<MIInfo> execMonitor = new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) {
|
||||||
|
@Override
|
||||||
|
protected void handleSuccess() {
|
||||||
|
getSession().dispatchEvent(new InferiorStartedDMEvent(getGDBDMContext()), getProperties());
|
||||||
|
super.handleSuccess();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if (!stopInMain) {
|
if (!stopInMain) {
|
||||||
// Just start the program.
|
// Just start the program.
|
||||||
queueCommand(execCommand, new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
|
queueCommand(execCommand, execMonitor);
|
||||||
} else {
|
} else {
|
||||||
String stopSymbol = null;
|
String stopSymbol = null;
|
||||||
try {
|
try {
|
||||||
|
@ -357,16 +365,7 @@ public class GDBControl extends AbstractMIControl {
|
||||||
@Override
|
@Override
|
||||||
protected void handleSuccess() {
|
protected void handleSuccess() {
|
||||||
// After the break-insert is done, execute the -exec-run or -exec-continue command.
|
// After the break-insert is done, execute the -exec-run or -exec-continue command.
|
||||||
queueCommand(
|
queueCommand(execCommand, execMonitor);
|
||||||
execCommand,
|
|
||||||
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) {
|
|
||||||
@Override
|
|
||||||
protected void handleSuccess() {
|
|
||||||
getSession().dispatchEvent(
|
|
||||||
new InferiorStartedDMEvent(getGDBDMContext()), getProperties());
|
|
||||||
super.handleSuccess();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue