From 9898f801b47255d0f1dee8c7a2238369e34adcd1 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 17 Jun 2009 18:50:31 +0000 Subject: * gdbarch.sh (pointer_to_address): Change to type 'm'. (address_to_pointer): Likewise. * gdbarch.c, gdbarch.h: Regenerate. * inferior.h (unsigned_pointer_to_address): Add GDBARCH argument. (signed_pointer_to_address): Likewise. (unsigned_address_to_pointer, address_to_signed_pointer): Likewise. * findvar.c (unsigned_pointer_to_address): Likewise. (signed_pointer_to_address): Likewise. (unsigned_address_to_pointer, address_to_signed_pointer): Likewise. * avr-tdep.c (avr_address_to_pointer): Likewise. (avr_pointer_to_address): Likewise. * iq2000-tdep.c (iq2000_pointer_to_address): Likewise. (iq2000_address_to_pointer): Likewise. * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise. (m32c_m16c_pointer_to_address): Likewise. * spu-tdep.c (spu_pointer_to_address): Likewise. * xstormy16-tdep.c (xstormy16_pointer_to_address): Likewise. (xstormy16_address_to_pointer): Likewise. --- gdb/avr-tdep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/avr-tdep.c') diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c index c6073f7..16b27ad 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -279,7 +279,8 @@ avr_convert_saddr_to_raw (CORE_ADDR x) /* Convert from address to pointer and vice-versa. */ static void -avr_address_to_pointer (struct type *type, gdb_byte *buf, CORE_ADDR addr) +avr_address_to_pointer (struct gdbarch *gdbarch, + struct type *type, gdb_byte *buf, CORE_ADDR addr) { /* Is it a code address? */ if (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_FUNC @@ -297,7 +298,8 @@ avr_address_to_pointer (struct type *type, gdb_byte *buf, CORE_ADDR addr) } static CORE_ADDR -avr_pointer_to_address (struct type *type, const gdb_byte *buf) +avr_pointer_to_address (struct gdbarch *gdbarch, + struct type *type, const gdb_byte *buf) { CORE_ADDR addr = extract_unsigned_integer (buf, TYPE_LENGTH (type)); -- cgit v1.1