mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
Default GDB thread ID
This commit is contained in:
parent
b7310ff5db
commit
2bbc19a848
1 changed files with 2 additions and 2 deletions
|
@ -284,7 +284,7 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl
|
||||||
private StateChangeReason fStateChangeReason;
|
private StateChangeReason fStateChangeReason;
|
||||||
private IExecutionDMContext fStateChangeTriggeringContext;
|
private IExecutionDMContext fStateChangeTriggeringContext;
|
||||||
|
|
||||||
private static final int NO_THREAD_ID = 0;
|
private static final int DEFAULT_THREAD_ID = 1;
|
||||||
|
|
||||||
public MIRunControl(DsfSession session) {
|
public MIRunControl(DsfSession session) {
|
||||||
super(session);
|
super(session);
|
||||||
|
@ -628,7 +628,7 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl
|
||||||
if (info.getThreadIds().length == 0) {
|
if (info.getThreadIds().length == 0) {
|
||||||
//Main thread always exist even if it is not reported by GDB.
|
//Main thread always exist even if it is not reported by GDB.
|
||||||
//So create thread-id= 0 when no thread is reported
|
//So create thread-id= 0 when no thread is reported
|
||||||
return new IMIExecutionDMContext[]{new MIExecutionDMC(getSession().getId(), containerCtx, NO_THREAD_ID)};
|
return new IMIExecutionDMContext[]{new MIExecutionDMC(getSession().getId(), containerCtx, DEFAULT_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