2003-02-01 Andrew Cagney <ac131313@redhat.com>

* defs.h (host_pointer_to_address): Delete declaration.
	(address_to_host_pointer): Delete declaration.
	* utils.c (host_pointer_to_address): Delete function.
	(address_to_host_pointer): Delete function.
	* procfs.c (procfs_address_to_host_pointer): New function.
	* procfs.c (proc_set_watchpoint): Use.
	(procfs_can_use_hw_breakpoint): Update comments.
	* somsolib.c (hpux_address_to_host_pointer_hack): New function.
	(som_solib_add): Use.
	* hppa-tdep.c (hppa_pointer_to_address_hack): New function.
	* hppa-tdep.c (unwind_command): Use.
This commit is contained in:
Andrew Cagney
2003-02-01 23:34:05 +00:00
parent b66cc1a0d2
commit 9a043c1d0c
6 changed files with 66 additions and 30 deletions

View File

@@ -4555,6 +4555,16 @@ child_get_current_exception_event (void)
return &current_ex_event;
}
/* Instead of this nasty cast, add a method pvoid() that prints out a
host VOID data type (remember %p isn't portable). */
static CORE_ADDR
hppa_pointer_to_address_hack (void *ptr)
{
gdb_assert (sizeof (ptr) == TYPE_LENGTH (builtin_type_void_data_ptr));
return POINTER_TO_ADDRESS (builtin_type_void_data_ptr, &ptr);
}
static void
unwind_command (char *exp, int from_tty)
{
@@ -4577,7 +4587,7 @@ unwind_command (char *exp, int from_tty)
}
printf_unfiltered ("unwind_table_entry (0x%s):\n",
paddr_nz (host_pointer_to_address (u)));
paddr_nz (hppa_pointer_to_address_hack (u)));
printf_unfiltered ("\tregion_start = ");
print_address (u->region_start, gdb_stdout);