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/utils.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/utils.c')
-rw-r--r-- | gdb/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 294ad42..855f474 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -3000,19 +3000,19 @@ phex_nz (ULONGEST l, int sizeof_l) CORE_ADDR host_pointer_to_address (void *ptr) { - if (sizeof (ptr) != TYPE_LENGTH (builtin_type_ptr)) + if (sizeof (ptr) != TYPE_LENGTH (builtin_type_void_data_ptr)) internal_error (__FILE__, __LINE__, "core_addr_to_void_ptr: bad cast"); - return POINTER_TO_ADDRESS (builtin_type_ptr, &ptr); + return POINTER_TO_ADDRESS (builtin_type_void_data_ptr, &ptr); } void * address_to_host_pointer (CORE_ADDR addr) { void *ptr; - if (sizeof (ptr) != TYPE_LENGTH (builtin_type_ptr)) + if (sizeof (ptr) != TYPE_LENGTH (builtin_type_void_data_ptr)) internal_error (__FILE__, __LINE__, "core_addr_to_void_ptr: bad cast"); - ADDRESS_TO_POINTER (builtin_type_ptr, &ptr, addr); + ADDRESS_TO_POINTER (builtin_type_void_data_ptr, &ptr, addr); return ptr; } |