* values.c (unpack_long, value_from_longest),
authorPer Bothner <per@bothner.com>
Tue, 5 Apr 1994 20:10:31 +0000 (20:10 +0000)
committerPer Bothner <per@bothner.com>
Tue, 5 Apr 1994 20:10:31 +0000 (20:10 +0000)
valarith.c (value_binop):  Allow TYPE_CODE_RANGE.

gdb/ChangeLog
gdb/values.c

index 06026308d1e557a4bcace135d13834d8be54e491..efa1b881155f998b540d6dded4b417966e041685 100644 (file)
@@ -1,3 +1,8 @@
+Tue Apr  5 12:58:47 1994  Per Bothner  (bothner@kalessin.cygnus.com)
+
+       * values.c (unpack_long, value_from_longest),
+       valarith.c (value_binop):  Allow TYPE_CODE_RANGE.
+
 Fri Apr  1 14:04:34 1994  Jason Merrill  (jason@deneb.cygnus.com)
 
        * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
index 331a3e0dbd8fdfa2022847f8431c6c6c4cf9197a..6e42051dbf72c449795eb02fb113e781fa2f20a9 100644 (file)
@@ -616,6 +616,7 @@ unpack_long (type, valaddr)
     case TYPE_CODE_BOOL:
     case TYPE_CODE_INT:
     case TYPE_CODE_CHAR:
+    case TYPE_CODE_RANGE:
       if (nosign)
        return extract_unsigned_integer (valaddr, len);
       else
@@ -1301,6 +1302,7 @@ value_from_longest (type, num)
     case TYPE_CODE_CHAR:
     case TYPE_CODE_ENUM:
     case TYPE_CODE_BOOL:
+    case TYPE_CODE_RANGE:
       store_signed_integer (VALUE_CONTENTS_RAW (val), len, num);
       break;