+2005-06-12 Mark Kettenis <kettenis@gnu.org>
+
+ * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
+ (unwind_command): Use %lx to print pointer.
+
2005-06-19 Mark Kettenis <kettenis@gnu.org>
* remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype.
return NULL;
}
-/* 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)
{
return;
}
- printf_unfiltered ("unwind_table_entry (0x%s):\n",
- paddr_nz (hppa_pointer_to_address_hack (u)));
+ printf_unfiltered ("unwind_table_entry (0x%lx):\n", (unsigned long)u);
printf_unfiltered ("\tregion_start = ");
print_address (u->region_start, gdb_stdout);