* c-exp.y (exp:STRING): Convert C strings into array-of-char
[deliverable/binutils-gdb.git] / gdb / parse.c
index 81f79e77ca276163501f38b96731d7fece26b333..48c8b75986ced483a986aff288e21a1c9c4ecf3c 100644 (file)
@@ -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;
This page took 0.023679 seconds and 4 git commands to generate.