mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Bug 315796: Support for GDB 7.2 where the MI event "=thread-group-created" has been replaced with "=thread-group-started". We need to keep both to support older GDBs.
This commit is contained in:
parent
97b109e9ba
commit
ace155deba
2 changed files with 6 additions and 4 deletions
|
@ -1042,7 +1042,8 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
} else {
|
||||
fThreadToGroupMap.remove(threadId);
|
||||
}
|
||||
} else if ("thread-group-created".equals(miEvent) || "thread-group-exited".equals(miEvent)) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
} else if ("thread-group-created".equals(miEvent) || "thread-group-started".equals(miEvent) || //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"thread-group-exited".equals(miEvent)) { //$NON-NLS-1$
|
||||
|
||||
String groupId = null;
|
||||
|
||||
|
@ -1058,7 +1059,7 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
}
|
||||
|
||||
if (groupId != null) {
|
||||
if ("thread-group-created".equals(miEvent)) { //$NON-NLS-1$
|
||||
if ("thread-group-created".equals(miEvent) || "thread-group-started".equals(miEvent)) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
fDebuggedProcessesAndNames.put(groupId, ""); //$NON-NLS-1$
|
||||
|
||||
// GDB is debugging a new process. Let's fetch its
|
||||
|
|
|
@ -212,7 +212,8 @@ public class MIRunControlEventProcessor_7_0
|
|||
|
||||
fCommandControl.getSession().dispatchEvent(event, fCommandControl.getProperties());
|
||||
}
|
||||
} else if ("thread-group-created".equals(miEvent) || "thread-group-exited".equals(miEvent)) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
} else if ("thread-group-created".equals(miEvent) || "thread-group-started".equals(miEvent) || //$NON-NLS-1$ //$NON-NLS-2$
|
||||
"thread-group-exited".equals(miEvent)) { //$NON-NLS-1$
|
||||
|
||||
String groupId = null;
|
||||
|
||||
|
@ -232,7 +233,7 @@ public class MIRunControlEventProcessor_7_0
|
|||
IProcessDMContext procDmc = procService.createProcessContext(fControlDmc, groupId);
|
||||
|
||||
MIEvent<?> event = null;
|
||||
if ("thread-group-created".equals(miEvent)) { //$NON-NLS-1$
|
||||
if ("thread-group-created".equals(miEvent) || "thread-group-started".equals(miEvent)) { //$NON-NLS-1$ //$NON-NLS-2$
|
||||
event = new MIThreadGroupCreatedEvent(procDmc, exec.getToken(), groupId);
|
||||
} else if ("thread-group-exited".equals(miEvent)) { //$NON-NLS-1$
|
||||
event = new MIThreadGroupExitedEvent(procDmc, exec.getToken(), groupId);
|
||||
|
|
Loading…
Add table
Reference in a new issue