diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-08-18 17:18:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-08-18 17:18:45 +0000 |
commit | c2848c82cee21a0e54656f3e4a1a81285411c9d6 (patch) | |
tree | 0e26f28297408c685cfbe0178afc42f4fe7809f5 /gdb/i386-tdep.c | |
parent | d8ee244c992db6eac3be230e8e581f2ba0496e4d (diff) | |
download | gdb-c2848c82cee21a0e54656f3e4a1a81285411c9d6.zip gdb-c2848c82cee21a0e54656f3e4a1a81285411c9d6.tar.gz gdb-c2848c82cee21a0e54656f3e4a1a81285411c9d6.tar.bz2 |
* i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
write_register_gen instead of write_register_bytes.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index bd4eb9e..4230136 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -833,8 +833,7 @@ i386_do_pop_frame (struct frame_info *frame) if (addr) { read_memory (addr, regbuf, REGISTER_RAW_SIZE (regnum)); - write_register_bytes (REGISTER_BYTE (regnum), regbuf, - REGISTER_RAW_SIZE (regnum)); + write_register_gen (regnum, regbuf); } } write_register (FP_REGNUM, read_memory_integer (fp, 4)); @@ -1003,8 +1002,7 @@ i386_store_return_value (struct type *type, char *valbuf) not exactly how it would happen on the target itself, but it is the best we can do. */ convert_typed_floating (valbuf, type, buf, builtin_type_i387_ext); - write_register_bytes (REGISTER_BYTE (FP0_REGNUM), buf, - FPU_REG_RAW_SIZE); + write_register_gen (FP0_REGNUM, buf); /* Set the top of the floating-point register stack to 7. The actual value doesn't really matter, but 7 is what a normal |