mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +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 IExecutionDMContext fStateChangeTriggeringContext;
|
||||
|
||||
private static final int NO_THREAD_ID = 0;
|
||||
private static final int DEFAULT_THREAD_ID = 1;
|
||||
|
||||
public MIRunControl(DsfSession session) {
|
||||
super(session);
|
||||
|
@ -628,7 +628,7 @@ public class MIRunControl extends AbstractDsfService implements IMIRunControl
|
|||
if (info.getThreadIds().length == 0) {
|
||||
//Main thread always exist even if it is not reported by GDB.
|
||||
//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 {
|
||||
IExecutionDMContext[] executionDmcs = new IMIExecutionDMContext[info.getThreadIds().length];
|
||||
for (int i = 0; i < info.getThreadIds().length; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue