1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Bug 323636: The thread value was getting overwritten if the disabled flag was also used.

This commit is contained in:
Marc Khouzam 2010-08-25 16:55:00 +00:00
parent 017a6ef082
commit 25e014ce24

View file

@ -116,7 +116,7 @@ public class MIBreakInsert extends MICommand<MIBreakInsertInfo>
i++; i++;
} }
if (isTracepoint) { if (isTracepoint) {
i ++; i++;
} }
String[] opts = new String[i]; String[] opts = new String[i];
@ -147,14 +147,15 @@ public class MIBreakInsert extends MICommand<MIBreakInsertInfo>
opts[i] = "-p"; //$NON-NLS-1$ opts[i] = "-p"; //$NON-NLS-1$
i++; i++;
opts[i] = Integer.toString(tid); opts[i] = Integer.toString(tid);
i++;
} }
if (disabled) { if (disabled) {
opts[i] = "-d"; //$NON-NLS-1$ opts[i] = "-d"; //$NON-NLS-1$
i ++; i++;
} }
if (isTracepoint) { if (isTracepoint) {
opts[i] = "-a"; //$NON-NLS-1$ opts[i] = "-a"; //$NON-NLS-1$
i ++; i++;
} }
if (opts.length > 0) { if (opts.length > 0) {