mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +02:00
Bug 459688 - Label in breakpoint thread filter dialog should match debug
view
Change-Id: I3d74c3316f5acbf2b6aadc0b6e99e7081384f401
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
(cherry picked from commit 0e041e8e86
)
This commit is contained in:
parent
056db0fea8
commit
4fb1274ec5
1 changed files with 10 additions and 7 deletions
|
@ -515,17 +515,20 @@ public class GdbThreadFilterEditor {
|
||||||
@Override
|
@Override
|
||||||
protected void handleSuccess() {
|
protected void handleSuccess() {
|
||||||
final StringBuilder builder = new StringBuilder(Messages.GdbThreadFilterEditor_Thread);
|
final StringBuilder builder = new StringBuilder(Messages.GdbThreadFilterEditor_Thread);
|
||||||
builder.append("["); //$NON-NLS-1$
|
builder.append(" #"); //$NON-NLS-1$
|
||||||
builder.append(((IMIExecutionDMContext)thread).getThreadId());
|
builder.append(((IMIExecutionDMContext)thread).getThreadId());
|
||||||
builder.append("] "); //$NON-NLS-1$
|
|
||||||
|
String threadName = getData().getName();
|
||||||
|
if (threadName != null) {
|
||||||
|
builder.append(" ["); //$NON-NLS-1$
|
||||||
|
builder.append(threadName);
|
||||||
|
builder.append("] "); //$NON-NLS-1$
|
||||||
|
}
|
||||||
|
|
||||||
String threadId = getData().getId();
|
String threadId = getData().getId();
|
||||||
if (threadId != null) {
|
if (threadId != null) {
|
||||||
builder.append(threadId);
|
builder.append(threadId);
|
||||||
}
|
}
|
||||||
String threadName = getData().getName();
|
|
||||||
if (threadName != null) {
|
|
||||||
builder.append(threadName);
|
|
||||||
}
|
|
||||||
|
|
||||||
rm.setData(builder.toString());
|
rm.setData(builder.toString());
|
||||||
rm.done();
|
rm.done();
|
||||||
|
|
Loading…
Add table
Reference in a new issue