aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-04-05 20:10:31 +0000
committerPer Bothner <per@bothner.com>1994-04-05 20:10:31 +0000
commitb96bc1e41fe0d739e299f73c09b93afd5a0e60ff (patch)
treede12b4b61f2f68decc4eed7de3ee1820cca30054
parentf3645945cfd49e1e1a33cc4273e4951cf6020202 (diff)
downloadgdb-b96bc1e41fe0d739e299f73c09b93afd5a0e60ff.zip
gdb-b96bc1e41fe0d739e299f73c09b93afd5a0e60ff.tar.gz
gdb-b96bc1e41fe0d739e299f73c09b93afd5a0e60ff.tar.bz2
* values.c (unpack_long, value_from_longest),
valarith.c (value_binop): Allow TYPE_CODE_RANGE.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/values.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0602630..efa1b88 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/values.c b/gdb/values.c
index 331a3e0..6e42051 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -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;