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:
parent
6cc13ab881
commit
e7a52e7c7c
1 changed files with 8 additions and 3 deletions
|
@ -294,10 +294,15 @@ public class MIRunControlEventProcessor_7_0
|
||||||
IContainerDMContext containerDmc = null;
|
IContainerDMContext containerDmc = null;
|
||||||
if (groupId == null) {
|
if (groupId == null) {
|
||||||
// MI does not currently provide the group-id in these events
|
// MI does not currently provide the group-id in these events
|
||||||
if (threadId != null) {
|
|
||||||
containerDmc = procService.createContainerContextFromThreadId(fControlDmc, threadId);
|
// In some cases, gdb sends a bare stopped event. Likely a bug, but
|
||||||
procDmc = DMContexts.getAncestorOfType(containerDmc, IProcessDMContext.class);
|
// 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 {
|
} else {
|
||||||
// This code would only trigger if the groupId was provided by MI
|
// This code would only trigger if the groupId was provided by MI
|
||||||
procDmc = procService.createProcessContext(fControlDmc, groupId);
|
procDmc = procService.createProcessContext(fControlDmc, groupId);
|
||||||
|
|
Loading…
Add table
Reference in a new issue