diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-05-14 11:27:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-05-14 11:27:03 +0000 |
commit | 42835c2ba0de387d6fa747413d4f6198d06a0f03 (patch) | |
tree | 602139b63292ce7152e0f1661c0d9b77983d54a1 /gdb/i386-tdep.c | |
parent | 58d6f3a5e60bda04d60f1c07db1a798981c0692e (diff) | |
download | gdb-42835c2ba0de387d6fa747413d4f6198d06a0f03.zip gdb-42835c2ba0de387d6fa747413d4f6198d06a0f03.tar.gz gdb-42835c2ba0de387d6fa747413d4f6198d06a0f03.tar.bz2 |
* amd64-tdep.c (amd64_return_value): Change type of readbuf and
writebuf arguments to `gdb_byte *'. Remove now redundant casts.
* i386-tdep.c (i386_return_value): Change type of readbuf and
writebuf arguments to `gdb_byte *'.
(i386_pseudo_register_read, i386_pseudo_register_write): Change
type of last argument to `gdb_byte *'.
(i386_register_to_value, i386_value_to_register): Change type of
last argument to `gdb_byte *'. Simplify function a bit.
* i387-tdep.h (i387_value_to_register, i387_register_to_value):
Change type of last argument to `gdb_byte *'.
* i387-tdep.c: Likewise.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index f273248..ce2ad81 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1438,8 +1438,8 @@ i386_reg_struct_return_p (struct gdbarch *gdbarch, struct type *type) static enum return_value_convention i386_return_value (struct gdbarch *gdbarch, struct type *type, - struct regcache *regcache, void *readbuf, - const void *writebuf) + struct regcache *regcache, gdb_byte *readbuf, + const gdb_byte *writebuf) { enum type_code code = TYPE_CODE (type); @@ -1603,7 +1603,7 @@ i386_mmx_regnum_to_fp_regnum (struct regcache *regcache, int regnum) static void i386_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, - int regnum, void *buf) + int regnum, gdb_byte *buf) { if (i386_mmx_regnum_p (gdbarch, regnum)) { @@ -1620,7 +1620,7 @@ i386_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, static void i386_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, - int regnum, const void *buf) + int regnum, const gdb_byte *buf) { if (i386_mmx_regnum_p (gdbarch, regnum)) { @@ -1703,10 +1703,9 @@ i386_convert_register_p (int regnum, struct type *type) static void i386_register_to_value (struct frame_info *frame, int regnum, - struct type *type, void *to) + struct type *type, gdb_byte *to) { int len = TYPE_LENGTH (type); - gdb_byte *buf = to; /* FIXME: kettenis/20030609: What should we do if REGNUM isn't available in FRAME (i.e. if it wasn't saved)? */ @@ -1726,10 +1725,10 @@ i386_register_to_value (struct frame_info *frame, int regnum, gdb_assert (regnum != -1); gdb_assert (register_size (current_gdbarch, regnum) == 4); - get_frame_register (frame, regnum, buf); + get_frame_register (frame, regnum, to); regnum = i386_next_regnum (regnum); len -= 4; - buf += 4; + to += 4; } } @@ -1738,10 +1737,9 @@ i386_register_to_value (struct frame_info *frame, int regnum, static void i386_value_to_register (struct frame_info *frame, int regnum, - struct type *type, const void *from) + struct type *type, const gdb_byte *from) { int len = TYPE_LENGTH (type); - const gdb_byte *buf = from; if (i386_fp_regnum_p (regnum)) { @@ -1758,10 +1756,10 @@ i386_value_to_register (struct frame_info *frame, int regnum, gdb_assert (regnum != -1); gdb_assert (register_size (current_gdbarch, regnum) == 4); - put_frame_register (frame, regnum, buf); + put_frame_register (frame, regnum, from); regnum = i386_next_regnum (regnum); len -= 4; - buf += 4; + from += 4; } } |