Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2012-05-01 09:21:56 -0400
committerMarc Khouzam2012-05-01 09:23:42 -0400
commit8305c1daa0e64f44c1f1176a97fc15fd97f7fe0e (patch)
tree01e56bde00ea22bb558c2afd479c7323e37c8e4c /dsf-gdb
parent344f3979de363682faa36b811ffde07107cd2119 (diff)
downloadorg.eclipse.cdt-8305c1daa0e64f44c1f1176a97fc15fd97f7fe0e.tar.gz
org.eclipse.cdt-8305c1daa0e64f44c1f1176a97fc15fd97f7fe0e.tar.xz
org.eclipse.cdt-8305c1daa0e64f44c1f1176a97fc15fd97f7fe0e.zip
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>
Diffstat (limited to 'dsf-gdb')
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_1.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_1.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_1.java
index 297ea8f22a..98bce344a7 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_1.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses_7_1.java
@@ -175,8 +175,16 @@ public class GDBProcesses_7_1 extends GDBProcesses_7_0 {
if (getData().getThreadList().length != 0) {
MIThread thread = getData().getThreadList()[0];
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();
- 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 });
}
}

Back to the top