summaryrefslogtreecommitdiff
path: root/gdb/std-regs.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-06 15:23:06 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-06 15:23:06 +0000
commit25e4ded8d30ea4f8cd7eeef0bdfc3a3a02dd1cac (patch)
tree334914cbe5c4922ca45e5d0c3a78729be4ddbb52 /gdb/std-regs.c
parentd5ecc78e810286ba804f87b1c93156d1ece5c5c6 (diff)
downloadgdb-25e4ded8d30ea4f8cd7eeef0bdfc3a3a02dd1cac.tar.gz
2007-06-06 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (ADDRESS_TO_POINTER): Replace by gdbarch_address_to_pointer. * findvar.c (store_typed_address): Likewise. * gdbtypes.c (make_pointer_type): Likewise (comment). * procfs.c (procfs_address_to_host_pointer): Likewise. * std-regs.c (value_of_builtin_frame_reg): Likewise. (value_of_builtin_frame_fp_reg): Likewise. (value_of_builtin_frame_pc_reg): Likewise. * utils.c (paddress): Likewise (comment). * gdbarch.sh (POINTER_TO_ADDRESS): Replace by gdbarch_pointer_to_address. * findvar.c (extract_typed_address): Likewise. * gdbtypes.c (make_pointer_type): Likewise (comment). * valops.c (value_cast): Likewise (comment). * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/std-regs.c')
-rw-r--r--gdb/std-regs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/std-regs.c b/gdb/std-regs.c
index 2edcba8ac38..2aa5b36dfcd 100644
--- a/gdb/std-regs.c
+++ b/gdb/std-regs.c
@@ -64,8 +64,8 @@ value_of_builtin_frame_reg (struct frame_info *frame, const void *baton)
memset (buf, 0, TYPE_LENGTH (value_type (val)));
/* frame.base. */
if (frame != NULL)
- ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf,
- get_frame_base (frame));
+ gdbarch_address_to_pointer (current_gdbarch, builtin_type_void_data_ptr,
+ buf, get_frame_base (frame));
buf += TYPE_LENGTH (builtin_type_void_data_ptr);
/* frame.XXX. */
return val;
@@ -89,8 +89,8 @@ value_of_builtin_frame_fp_reg (struct frame_info *frame, const void *baton)
if (frame == NULL)
memset (buf, 0, TYPE_LENGTH (value_type (val)));
else
- ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf,
- get_frame_base_address (frame));
+ gdbarch_address_to_pointer (current_gdbarch, builtin_type_void_data_ptr,
+ buf, get_frame_base_address (frame));
return val;
}
}
@@ -107,8 +107,8 @@ value_of_builtin_frame_pc_reg (struct frame_info *frame, const void *baton)
if (frame == NULL)
memset (buf, 0, TYPE_LENGTH (value_type (val)));
else
- ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf,
- get_frame_pc (frame));
+ gdbarch_address_to_pointer (current_gdbarch, builtin_type_void_data_ptr,
+ buf, get_frame_pc (frame));
return val;
}
}