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

Bug 311118: Attach does not work with MinGW gdb 7.0

This commit is contained in:
John Cortell 2010-04-30 15:54:48 +00:00
parent 6cc13ab881
commit e7a52e7c7c

View file

@ -294,10 +294,15 @@ public class MIRunControlEventProcessor_7_0
IContainerDMContext containerDmc = null;
if (groupId == null) {
// MI does not currently provide the group-id in these events
if (threadId != null) {
// In some cases, gdb sends a bare stopped event. Likely a bug, but
// we need to react to it all the same. See bug 311118.
if (threadId == null) {
threadId = "all"; //$NON-NLS-1$
}
containerDmc = procService.createContainerContextFromThreadId(fControlDmc, threadId);
procDmc = DMContexts.getAncestorOfType(containerDmc, IProcessDMContext.class);
}
} else {
// This code would only trigger if the groupId was provided by MI
procDmc = procService.createProcessContext(fControlDmc, groupId);