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

Bug 378152: GDB 7.x MI thread details field ignored for GDB >= 7.1

Change-Id: I2e45f72812851fbbd38db717f07ba030ec2b2935
Reviewed-on: https://git.eclipse.org/r/5772
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
Marc Khouzam 2012-05-01 09:21:56 -04:00
parent 344f3979de
commit 8305c1daa0

View file

@ -175,8 +175,16 @@ public class GDBProcesses_7_1 extends GDBProcesses_7_0 {
if (getData().getThreadList().length != 0) { if (getData().getThreadList().length != 0) {
MIThread thread = getData().getThreadList()[0]; MIThread thread = getData().getThreadList()[0];
if (thread.getThreadId().equals(threadDmc.getId())) { if (thread.getThreadId().equals(threadDmc.getId())) {
String id = thread.getOsId();
// append thread details (if any) to the thread ID
// as for GDB 6.x with CLIInfoThreadsInfo#getOsId()
final String details = thread.getDetails();
if (details != null && details.length() > 0) {
id += " (" + details + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
String core = thread.getCore(); String core = thread.getCore();
threadData = new MIThreadDMData_7_1("", thread.getOsId(), //$NON-NLS-1$ threadData = new MIThreadDMData_7_1("", id, //$NON-NLS-1$
core == null ? null : new String[] { core }); core == null ? null : new String[] { core });
} }
} }