mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Should use createMIExecutionContext() instead of calling new MIExecutionDMC directly.
This commit is contained in:
parent
aac8edc5d7
commit
85fd860849
1 changed files with 2 additions and 1 deletions
|
@ -103,6 +103,7 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl
|
|||
fThreadId = threadId;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
protected MIExecutionDMC(String sessionId, IContainerDMContext containerDmc, int threadId) {
|
||||
super(sessionId,
|
||||
containerDmc == null ? new IDMContext[0]
|
||||
|
@ -659,7 +660,7 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl
|
|||
// So create thread-id = 0 when no thread is reported.
|
||||
// This hack is necessary to prevent AbstractMIControl from issuing a thread-select
|
||||
// because it doesn't work if the application was not compiled with pthread.
|
||||
return new IMIExecutionDMContext[]{new MIExecutionDMC(getSession().getId(), containerCtx, FAKE_THREAD_ID)};
|
||||
return new IMIExecutionDMContext[]{createMIExecutionContext(containerCtx, FAKE_THREAD_ID)};
|
||||
} else {
|
||||
IExecutionDMContext[] executionDmcs = new IMIExecutionDMContext[info.getThreadIds().length];
|
||||
for (int i = 0; i < info.getThreadIds().length; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue