forked from Imagelibrary/binutils-gdb
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:
@@ -4555,6 +4555,16 @@ child_get_current_exception_event (void)
|
||||
return ¤t_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);
|
||||
|
||||
Reference in New Issue
Block a user