mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +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;
|
fThreadId = threadId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
protected MIExecutionDMC(String sessionId, IContainerDMContext containerDmc, int threadId) {
|
protected MIExecutionDMC(String sessionId, IContainerDMContext containerDmc, int threadId) {
|
||||||
super(sessionId,
|
super(sessionId,
|
||||||
containerDmc == null ? new IDMContext[0]
|
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.
|
// So create thread-id = 0 when no thread is reported.
|
||||||
// This hack is necessary to prevent AbstractMIControl from issuing a thread-select
|
// 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.
|
// 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 {
|
} else {
|
||||||
IExecutionDMContext[] executionDmcs = new IMIExecutionDMContext[info.getThreadIds().length];
|
IExecutionDMContext[] executionDmcs = new IMIExecutionDMContext[info.getThreadIds().length];
|
||||||
for (int i = 0; i < info.getThreadIds().length; i++) {
|
for (int i = 0; i < info.getThreadIds().length; i++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue