diff options
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 9fa9cea..f3be320 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -440,23 +440,29 @@ legacy_pc_in_sigtramp (CORE_ADDR pc, char *name) } int -legacy_convert_register_p (int regnum) +legacy_convert_register_p (int regnum, struct type *type) { return DEPRECATED_REGISTER_CONVERTIBLE (regnum); } void -legacy_register_to_value (int regnum, struct type *type, - char *from, char *to) +legacy_register_to_value (struct frame_info *frame, int regnum, + struct type *type, void *to) { + char from[MAX_REGISTER_SIZE]; + frame_read_register (frame, regnum, from); DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum, type, from, to); } void -legacy_value_to_register (struct type *type, int regnum, - char *from, char *to) +legacy_value_to_register (struct frame_info *frame, int regnum, + struct type *type, const void *tmp) { + char to[MAX_REGISTER_SIZE]; + char *from = alloca (TYPE_LENGTH (type)); + memcpy (from, from, TYPE_LENGTH (type)); DEPRECATED_REGISTER_CONVERT_TO_RAW (type, regnum, from, to); + put_frame_register (frame, regnum, to); } |