diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-02-01 23:34:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-02-01 23:34:05 +0000 |
commit | 9a043c1d0c3e8a873b2cd90f6e048c77d2efdc8a (patch) | |
tree | 58a5484a279efb44d8b29cc0a3acfdcf3abb8078 /gdb/hppa-tdep.c | |
parent | b66cc1a0d2931b856edd960b481f7d8c2d75598e (diff) | |
download | gdb-9a043c1d0c3e8a873b2cd90f6e048c77d2efdc8a.zip gdb-9a043c1d0c3e8a873b2cd90f6e048c77d2efdc8a.tar.gz gdb-9a043c1d0c3e8a873b2cd90f6e048c77d2efdc8a.tar.bz2 |
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.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index ba3d63c..6c00934 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -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); |