mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 08:46:02 +02:00
Bug 397039 - Avoid extra empty white spaces.
Change-Id: I78cb50f57ee48bbf3ad07000a602c0cc17ea5f2e
This commit is contained in:
parent
2fba04a143
commit
d02cebafbf
2 changed files with 9 additions and 2 deletions
|
@ -777,14 +777,18 @@ public class GDBProcesses_7_0 extends AbstractDsfService
|
|||
if (thread.getThreadId().equals(threadDmc.getId())) {
|
||||
String id = ""; //$NON-NLS-1$
|
||||
if (thread.getOsId() != null) {
|
||||
id = thread.getOsId() + " "; //$NON-NLS-1$
|
||||
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) {
|
||||
if (!id.isEmpty()) id += " "; //$NON-NLS-1$
|
||||
id += "(" + details + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
// We must indicate and empty id by using null
|
||||
if (id.isEmpty()) id = null;
|
||||
|
||||
threadData = new MIThreadDMData("", id); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
|
|
@ -178,14 +178,17 @@ public class GDBProcesses_7_1 extends GDBProcesses_7_0 {
|
|||
if (thread.getThreadId().equals(threadDmc.getId())) {
|
||||
String id = ""; //$NON-NLS-1$
|
||||
if (thread.getOsId() != null) {
|
||||
id = thread.getOsId() + " "; //$NON-NLS-1$
|
||||
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) {
|
||||
if (!id.isEmpty()) id += " "; //$NON-NLS-1$
|
||||
id += "(" + details + ")"; //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
// We must indicate and empty id by using null
|
||||
if (id.isEmpty()) id = null;
|
||||
|
||||
String core = thread.getCore();
|
||||
threadData = new MIThreadDMData_7_1("", id, //$NON-NLS-1$
|
||||
|
|
Loading…
Add table
Reference in a new issue