diff options
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 4a15de8..359ab62 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -924,6 +924,8 @@ operator_length_standard (const struct expression *expr, int endpos, /* Assume the range has 2 arguments (low bound and high bound), then reduce the argument count if any bounds are set to default. */ args = 2; + if (range_flag & RANGE_HAS_STRIDE) + ++args; if (range_flag & RANGE_LOW_BOUND_DEFAULT) --args; if (range_flag & RANGE_HIGH_BOUND_DEFAULT) |