From 85fd8608499f04c37e4e274812540e57456b0374 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Sun, 27 Jul 2008 18:44:07 +0000 Subject: [PATCH] Should use createMIExecutionContext() instead of calling new MIExecutionDMC directly. --- .../src/org/eclipse/dd/mi/service/MIRunControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java index 38d81a9ddea..93874e8f0de 100644 --- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java +++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java @@ -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++) {