From: Mark Kettenis Date: Sun, 19 Jun 2005 21:25:47 +0000 (+0000) Subject: * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99d64d771c9db54c567ca1d290a5a8c899540f95;p=binutils-gdb.git * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function. (unwind_command): Use %lx to print pointer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c5479557d8d..ca7db2b6329 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2005-06-12 Mark Kettenis + + * hppa-tdep.c (hppa_pointer_to_address_hack): Remove function. + (unwind_command): Use %lx to print pointer. + 2005-06-19 Mark Kettenis * remote-sim.c (gdbsim_xfer_inferior_memory): Remove prototype. diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 75196d0e0fa..289cf093e97 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -2395,16 +2395,6 @@ hppa_lookup_stub_minimal_symbol (const char *name, 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) { @@ -2426,8 +2416,7 @@ 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);