diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-04 13:46:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-04 13:46:37 +0000 |
commit | ac2e2ef7e2214be3672096ea7e6641d6a0651fd7 (patch) | |
tree | 7205cea8571355be893617fae45005b4ab5901a7 /gdb/gdbarch.h | |
parent | 0b5454486cd4b2e34f4ac7eb51092ef55fa97b07 (diff) | |
download | gdb-ac2e2ef7e2214be3672096ea7e6641d6a0651fd7.zip gdb-ac2e2ef7e2214be3672096ea7e6641d6a0651fd7.tar.gz gdb-ac2e2ef7e2214be3672096ea7e6641d6a0651fd7.tar.bz2 |
Add host_pointer_to_address() and address_to_host_pointer(). Add
signed_pointer_to_address() etc. Rename generic_pointer_to_address()
to unsigned_pointer_to_address() etc.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index d4a7849..1875774 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -592,11 +592,11 @@ extern void set_gdbarch_register_convert_to_raw (struct gdbarch *gdbarch, gdbarc /* Default (function) for non- multi-arch platforms. */ #if (GDB_MULTI_ARCH == 0) && !defined (POINTER_TO_ADDRESS) -#define POINTER_TO_ADDRESS(type, buf) (generic_pointer_to_address (type, buf)) +#define POINTER_TO_ADDRESS(type, buf) (unsigned_pointer_to_address (type, buf)) #endif -typedef CORE_ADDR (gdbarch_pointer_to_address_ftype) (struct type *type, char *buf); -extern CORE_ADDR gdbarch_pointer_to_address (struct gdbarch *gdbarch, struct type *type, char *buf); +typedef CORE_ADDR (gdbarch_pointer_to_address_ftype) (struct type *type, void *buf); +extern CORE_ADDR gdbarch_pointer_to_address (struct gdbarch *gdbarch, struct type *type, void *buf); extern void set_gdbarch_pointer_to_address (struct gdbarch *gdbarch, gdbarch_pointer_to_address_ftype *pointer_to_address); #if GDB_MULTI_ARCH #if (GDB_MULTI_ARCH > 1) || !defined (POINTER_TO_ADDRESS) @@ -606,11 +606,11 @@ extern void set_gdbarch_pointer_to_address (struct gdbarch *gdbarch, gdbarch_poi /* Default (function) for non- multi-arch platforms. */ #if (GDB_MULTI_ARCH == 0) && !defined (ADDRESS_TO_POINTER) -#define ADDRESS_TO_POINTER(type, buf, addr) (generic_address_to_pointer (type, buf, addr)) +#define ADDRESS_TO_POINTER(type, buf, addr) (unsigned_address_to_pointer (type, buf, addr)) #endif -typedef void (gdbarch_address_to_pointer_ftype) (struct type *type, char *buf, CORE_ADDR addr); -extern void gdbarch_address_to_pointer (struct gdbarch *gdbarch, struct type *type, char *buf, CORE_ADDR addr); +typedef void (gdbarch_address_to_pointer_ftype) (struct type *type, void *buf, CORE_ADDR addr); +extern void gdbarch_address_to_pointer (struct gdbarch *gdbarch, struct type *type, void *buf, CORE_ADDR addr); extern void set_gdbarch_address_to_pointer (struct gdbarch *gdbarch, gdbarch_address_to_pointer_ftype *address_to_pointer); #if GDB_MULTI_ARCH #if (GDB_MULTI_ARCH > 1) || !defined (ADDRESS_TO_POINTER) |