From 090a2205b5e921ae177193783a0a2614ea842d09 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 8 Jul 2001 20:42:15 +0000 Subject: * 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. --- gdb/utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/utils.c') 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; } -- cgit v1.1