mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 325556: GDB 7.x MI thread details field ignored (DSF)
This commit is contained in:
parent
7585651f46
commit
d5cb79858a
1 changed files with 9 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
* Contributors:
|
||||
* Ericsson - initial API and implementation
|
||||
* Onur Akdemir (TUBITAK BILGEM-ITI) - Multi-process debugging (Bug 237306)
|
||||
* John Dallaway - GDB 7.x MI thread details field ignored (Bug 325556)
|
||||
*******************************************************************************/
|
||||
package org.eclipse.cdt.dsf.gdb.service;
|
||||
|
||||
|
@ -655,7 +656,14 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
if (getData().getThreadList().length != 0) {
|
||||
MIThread thread = getData().getThreadList()[0];
|
||||
if (thread.getThreadId().equals(threadDmc.getId())) {
|
||||
threadData = new MIThreadDMData("", thread.getOsId()); //$NON-NLS-1$
|
||||
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$
|
||||
}
|
||||
threadData = new MIThreadDMData("", id); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue