* ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
authorJoel Brobecker <brobecker@gnat.com>
Wed, 10 Sep 2008 16:19:38 +0000 (16:19 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 10 Sep 2008 16:19:38 +0000 (16:19 +0000)
        archecture-neutral builtin_type_int32 instead of builtin_type_int.

gdb/ChangeLog
gdb/ada-lang.c

index deec62d95e80d0dea6dbf72a85232be99ee09d5d..480763c36bf69eb27d427be1fd95591383b4033e 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-10  Joel Brobecker  <brobecker@adacore.com>
+
+       * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
+       archecture-neutral builtin_type_int32 instead of builtin_type_int.
+
 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
index fa163c4b54c102d9ac1d79c623adc663e72403a5..05ea4666f1fa5c11b3e1cc9360b27ab837f903a8 100644 (file)
@@ -9074,9 +9074,9 @@ ada_evaluate_subexp (struct type *expect_type, struct expression *exp,
       if (noside == EVAL_SKIP)
         goto nosideret;
       else if (noside == EVAL_AVOID_SIDE_EFFECTS)
-        return value_zero (builtin_type_int, not_lval);
+        return value_zero (builtin_type_int32, not_lval);
       else
-        return value_from_longest (builtin_type_int,
+        return value_from_longest (builtin_type_int32,
                                    TARGET_CHAR_BIT
                                    * TYPE_LENGTH (value_type (arg1)));