diff options
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 81f79e7..48c8b75 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -423,6 +423,13 @@ length_of_subexp (expr, endpos) oplen = 4 + BYTES_TO_EXP_ELEM (oplen); break; + case OP_ARRAY: + oplen = 4; + args = longest_to_int (expr->elts[endpos - 2].longconst); + args -= longest_to_int (expr->elts[endpos - 3].longconst); + args += 1; + break; + case TERNOP_COND: args = 3; break; @@ -544,6 +551,13 @@ prefixify_subexp (inexpr, outexpr, inend, outbeg) oplen = 4 + BYTES_TO_EXP_ELEM (oplen); break; + case OP_ARRAY: + oplen = 4; + args = longest_to_int (inexpr->elts[inend - 2].longconst); + args -= longest_to_int (inexpr->elts[inend - 3].longconst); + args += 1; + break; + case TERNOP_COND: args = 3; break; |