diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-07-08 20:42:15 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-07-08 20:42:15 +0000 |
commit | 090a2205b5e921ae177193783a0a2614ea842d09 (patch) | |
tree | 58fde486005ec64f877d174f4ae8007ec319bf40 /gdb/values.c | |
parent | 8059d5aa1c46fa62c37add1bf7627ad5c7583cb4 (diff) | |
download | gdb-090a2205b5e921ae177193783a0a2614ea842d09.zip gdb-090a2205b5e921ae177193783a0a2614ea842d09.tar.gz gdb-090a2205b5e921ae177193783a0a2614ea842d09.tar.bz2 |
* gdbtypes.h (builtin_type_void_data_ptr): Rename
builtin_type_ptr.
* gdbtypes.c (builtin_type_void_data_ptr): Update.
(build_gdbtypes): Update.
(_initialize_gdbtypes): Update.
* values.c (value_as_pointer): Update.
* utils.c (host_pointer_to_address): Update.
(address_to_host_pointer): Update.
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/values.c b/gdb/values.c index 43ff194..0d18c31 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -595,9 +595,10 @@ value_as_pointer (value_ptr val) can be different and may require different integer to pointer conversions. */ if (TYPE_CODE (VALUE_TYPE (val)) == TYPE_CODE_INT - && TYPE_LENGTH (VALUE_TYPE (val)) <= TYPE_LENGTH (builtin_type_ptr)) + && (TYPE_LENGTH (VALUE_TYPE (val)) + <= TYPE_LENGTH (builtin_type_void_data_ptr))) { - val = value_cast (builtin_type_ptr, val); + val = value_cast (builtin_type_void_data_ptr, val); } return unpack_long (VALUE_TYPE (val), VALUE_CONTENTS (val)); #endif |