From: Mark Kettenis Date: Sun, 10 Aug 2003 17:01:32 +0000 (+0000) Subject: * i387-tdep.c (i387_register_to_value): Use get_frame_register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=192285c6b9d8ce6dd56833d1bd8eca301ea799bf;p=binutils-gdb.git * i387-tdep.c (i387_register_to_value): Use get_frame_register instead of frame_read_register. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 03ef43f0134..481ec599cfb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2003-08-10 Mark Kettenis + * i387-tdep.c (i387_register_to_value): Use get_frame_register + instead of frame_read_register. + * i386fbsd-nat.c: Include "i386-tdep.h". (child_resume): Make `eflags' an ULONGEST. Use regcache_cooked_read_unsigned and regcache_cooked_write_unsigned diff --git a/gdb/i387-tdep.c b/gdb/i387-tdep.c index f7800af6415..b6e53a14d62 100644 --- a/gdb/i387-tdep.c +++ b/gdb/i387-tdep.c @@ -217,22 +217,14 @@ i387_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, int fpreg; int top; - frame_register_read (frame, FCTRL_REGNUM, buf); - fctrl = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FSTAT_REGNUM, buf); - fstat = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FTAG_REGNUM, buf); - ftag = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FISEG_REGNUM, buf); - fiseg = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FIOFF_REGNUM, buf); - fioff = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FOSEG_REGNUM, buf); - foseg = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FOOFF_REGNUM, buf); - fooff = extract_unsigned_integer (buf, 4); - frame_register_read (frame, FOP_REGNUM, buf); - fop = extract_unsigned_integer (buf, 4); + fctrl = get_frame_register_unsigned (frame, FCTRL_REGNUM); + fstat = get_frame_register_unsigned (frame, FSTAT_REGNUM); + ftag = get_frame_register_unsigned (frame, FTAG_REGNUM); + fiseg = get_frame_register_unsigned (frame, FISEG_REGNUM); + fioff = get_frame_register_unsigned (frame, FIOFF_REGNUM); + foseg = get_frame_register_unsigned (frame, FOSEG_REGNUM); + fooff = get_frame_register_unsigned (frame, FOOFF_REGNUM); + fop = get_frame_register_unsigned (frame, FOP_REGNUM); top = ((fstat >> 11) & 7); @@ -260,7 +252,7 @@ i387_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, break; } - frame_register_read (frame, (fpreg + 8 - top) % 8 + FP0_REGNUM, raw); + get_frame_register (frame, (fpreg + 8 - top) % 8 + FP0_REGNUM, raw); fputs_filtered ("0x", file); for (i = 9; i >= 0; i--) @@ -310,7 +302,7 @@ i387_register_to_value (struct frame_info *frame, int regnum, /* Convert to TYPE. This should be a no-op if TYPE is equivalent to the extended floating-point format used by the FPU. */ - frame_read_register (frame, regnum, from); + get_frame_register (frame, regnum, from); convert_typed_floating (from, builtin_type_i387_ext, to, type); }