mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[297798] Updated error codes used in getSubExpressions().
This commit is contained in:
parent
2d40e6fea7
commit
d5963828f4
1 changed files with 5 additions and 4 deletions
|
@ -746,9 +746,10 @@ public class MIExpressions extends AbstractDsfService implements IExpressions, I
|
||||||
* should be retrieved.
|
* should be retrieved.
|
||||||
* @param startIndex
|
* @param startIndex
|
||||||
* The starting index within the list of all children of the parent
|
* The starting index within the list of all children of the parent
|
||||||
* expression.
|
* expression. Must be a positive integer.
|
||||||
* @param length
|
* @param length
|
||||||
* The length or number of elements of the range requested
|
* The length or number of elements of the range requested.
|
||||||
|
* Must be a positive integer.
|
||||||
* @param rm
|
* @param rm
|
||||||
* The data request monitor that will contain the requested data
|
* The data request monitor that will contain the requested data
|
||||||
*/
|
*/
|
||||||
|
@ -756,7 +757,7 @@ public class MIExpressions extends AbstractDsfService implements IExpressions, I
|
||||||
final int length, final DataRequestMonitor<IExpressionDMContext[]> rm) {
|
final int length, final DataRequestMonitor<IExpressionDMContext[]> rm) {
|
||||||
|
|
||||||
if (startIndex < 0 || length < 0) {
|
if (startIndex < 0 || length < 0) {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, INVALID_HANDLE, "Invalid range for evaluating sub expressions.", null)); //$NON-NLS-1$
|
rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, INTERNAL_ERROR, "Invalid range for evaluating sub expressions.", null)); //$NON-NLS-1$
|
||||||
rm.done();
|
rm.done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -770,7 +771,7 @@ public class MIExpressions extends AbstractDsfService implements IExpressions, I
|
||||||
IExpressionDMContext[] subExpressions = getData();
|
IExpressionDMContext[] subExpressions = getData();
|
||||||
|
|
||||||
if (startIndex >= subExpressions.length || startIndex + length > subExpressions.length) {
|
if (startIndex >= subExpressions.length || startIndex + length > subExpressions.length) {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, INVALID_HANDLE, "Invalid range for evaluating sub expressions.", null)); //$NON-NLS-1$
|
rm.setStatus(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, REQUEST_FAILED, "Invalid range for evaluating sub expressions.", null)); //$NON-NLS-1$
|
||||||
rm.done();
|
rm.done();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue