diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-08-10 17:01:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-08-10 17:01:32 +0000 |
commit | df3d4c092028db1be51debc1428212b036aed8ba (patch) | |
tree | dabdf70afd8fac59e5a776c20dc2ed6c5e8c3aa0 | |
parent | 685c94643127e288859bc2b5337bbcc1d86945c5 (diff) | |
download | gdb-df3d4c092028db1be51debc1428212b036aed8ba.tar.gz |
* i387-tdep.c (i387_register_to_value): Use get_frame_register
instead of frame_read_register.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/i387-tdep.c | 28 |
2 files changed, 13 insertions, 18 deletions
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 <kettenis@gnu.org> + * 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); } |