diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-06-19 21:25:47 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-06-19 21:25:47 +0000 |
commit | 99d64d771c9db54c567ca1d290a5a8c899540f95 (patch) | |
tree | 7ab83ccc1eb8b79ca2fdf6dd7bf70835ac1ebeac /gdb/hppa-tdep.c | |
parent | 8d7337bf3de918177d76eb252e5194ce9b91242b (diff) | |
download | gdb-99d64d771c9db54c567ca1d290a5a8c899540f95.zip gdb-99d64d771c9db54c567ca1d290a5a8c899540f95.tar.gz gdb-99d64d771c9db54c567ca1d290a5a8c899540f95.tar.bz2 |
* hppa-tdep.c (hppa_pointer_to_address_hack): Remove function.
(unwind_command): Use %lx to print pointer.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 75196d0..289cf09 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); |