1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[242234] Until GDB officially support multi-process, we need to force the value of the groupId.

This commit is contained in:
Marc Khouzam 2008-10-03 19:43:04 +00:00
parent 1b8c75c4be
commit ed0ecf374a

View file

@ -30,6 +30,7 @@ import org.eclipse.dd.dsf.debug.service.command.ICommandControlService.ICommandC
import org.eclipse.dd.dsf.service.DsfServicesTracker;
import org.eclipse.dd.mi.internal.MIPlugin;
import org.eclipse.dd.mi.service.IMIProcesses;
import org.eclipse.dd.mi.service.MIProcesses;
import org.eclipse.dd.mi.service.command.commands.MIExecContinue;
import org.eclipse.dd.mi.service.command.commands.MIExecFinish;
import org.eclipse.dd.mi.service.command.commands.MIExecNext;
@ -190,6 +191,12 @@ public class MIRunControlEventProcessor_7_0
}
if ("thread-created".equals(miEvent)) { //$NON-NLS-1$
// Until GDB is officially supporting multi-process, we may not get
// a groupId. In this case, we are running single process and we'll
// need a groupId
if (groupId == null) {
groupId = MIProcesses.UNIQUE_GROUP_ID;
}
// Update the thread to groupId map with the new groupId
fThreadToGroupMap.put(threadId, groupId);
} else {