|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2010 QNX Software Systems and others. |
2 |
* Copyright (c) 2000, 2011 QNX Software Systems and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 153-166
Link Here
|
| 153 |
StringBuffer command = new StringBuffer(getOperation()); |
153 |
StringBuffer command = new StringBuffer(getOperation()); |
| 154 |
|
154 |
|
| 155 |
// Add the --thread option |
155 |
// Add the --thread option |
| 156 |
if (supportsThreadAndFrameOptions() && threadId != null) { |
156 |
if (supportsThreadAndFrameOptions() && threadId != null && threadId.trim().length() > 0) { |
| 157 |
command.append(" --thread " + threadId); //$NON-NLS-1$ |
157 |
command.append(" --thread " + threadId); //$NON-NLS-1$ |
| 158 |
|
158 |
|
| 159 |
// Add the --frame option, but only if we are using the --thread option |
159 |
// Add the --frame option, but only if we are using the --thread option |
| 160 |
if (frameId >= 0) { |
160 |
if (frameId >= 0) { |
| 161 |
command.append(" --frame " + frameId); //$NON-NLS-1$ |
161 |
command.append(" --frame " + frameId); //$NON-NLS-1$ |
| 162 |
} |
162 |
} |
| 163 |
} else if (supportsThreadGroupOption() && groupId != null) { |
163 |
} else if (supportsThreadGroupOption() && groupId != null && groupId.trim().length() > 0) { |
| 164 |
// The --thread-group option is only allowed if we are not using the --thread option |
164 |
// The --thread-group option is only allowed if we are not using the --thread option |
| 165 |
command.append(" --thread-group " + groupId); //$NON-NLS-1$ |
165 |
command.append(" --thread-group " + groupId); //$NON-NLS-1$ |
| 166 |
} |
166 |
} |
|
Lines 257-263
Link Here
|
| 257 |
/** |
257 |
/** |
| 258 |
* @since 4.0 |
258 |
* @since 4.0 |
| 259 |
*/ |
259 |
*/ |
| 260 |
public boolean supportsThreadGroupOption() { return false; } |
260 |
public boolean supportsThreadGroupOption() { return true; } |
| 261 |
|
261 |
|
| 262 |
/** |
262 |
/** |
| 263 |
* Compare commands based on the MI command string that they generate, |
263 |
* Compare commands based on the MI command string that they generate, |