diff options
Diffstat (limited to 'gdb/sparc64-tdep.c')
-rw-r--r-- | gdb/sparc64-tdep.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c index 0dc85af..68e603e 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -331,7 +331,7 @@ sparc64_register_type (struct gdbarch *gdbarch, int regnum) static void sparc64_pseudo_register_read (struct gdbarch *gdbarch, struct regcache *regcache, - int regnum, void *buf) + int regnum, gdb_byte *buf) { gdb_assert (regnum >= SPARC64_NUM_REGS); @@ -339,7 +339,7 @@ sparc64_pseudo_register_read (struct gdbarch *gdbarch, { regnum = SPARC_F0_REGNUM + 2 * (regnum - SPARC64_D0_REGNUM); regcache_raw_read (regcache, regnum, buf); - regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); + regcache_raw_read (regcache, regnum + 1, buf + 4); } else if (regnum >= SPARC64_D32_REGNUM && regnum <= SPARC64_D62_REGNUM) { @@ -350,15 +350,15 @@ sparc64_pseudo_register_read (struct gdbarch *gdbarch, { regnum = SPARC_F0_REGNUM + 4 * (regnum - SPARC64_Q0_REGNUM); regcache_raw_read (regcache, regnum, buf); - regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); - regcache_raw_read (regcache, regnum + 2, ((char *)buf) + 8); - regcache_raw_read (regcache, regnum + 3, ((char *)buf) + 12); + regcache_raw_read (regcache, regnum + 1, buf + 4); + regcache_raw_read (regcache, regnum + 2, buf + 8); + regcache_raw_read (regcache, regnum + 3, buf + 12); } else if (regnum >= SPARC64_Q32_REGNUM && regnum <= SPARC64_Q60_REGNUM) { regnum = SPARC64_F32_REGNUM + 2 * (regnum - SPARC64_Q32_REGNUM); regcache_raw_read (regcache, regnum, buf); - regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 8); + regcache_raw_read (regcache, regnum + 1, buf + 8); } else if (regnum == SPARC64_CWP_REGNUM || regnum == SPARC64_PSTATE_REGNUM @@ -390,7 +390,7 @@ sparc64_pseudo_register_read (struct gdbarch *gdbarch, static void sparc64_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, - int regnum, const void *buf) + int regnum, const gdb_byte *buf) { gdb_assert (regnum >= SPARC64_NUM_REGS); @@ -398,7 +398,7 @@ sparc64_pseudo_register_write (struct gdbarch *gdbarch, { regnum = SPARC_F0_REGNUM + 2 * (regnum - SPARC64_D0_REGNUM); regcache_raw_write (regcache, regnum, buf); - regcache_raw_write (regcache, regnum + 1, ((const char *)buf) + 4); + regcache_raw_write (regcache, regnum + 1, buf + 4); } else if (regnum >= SPARC64_D32_REGNUM && regnum <= SPARC64_D62_REGNUM) { @@ -409,15 +409,15 @@ sparc64_pseudo_register_write (struct gdbarch *gdbarch, { regnum = SPARC_F0_REGNUM + 4 * (regnum - SPARC64_Q0_REGNUM); regcache_raw_write (regcache, regnum, buf); - regcache_raw_write (regcache, regnum + 1, ((const char *)buf) + 4); - regcache_raw_write (regcache, regnum + 2, ((const char *)buf) + 8); - regcache_raw_write (regcache, regnum + 3, ((const char *)buf) + 12); + regcache_raw_write (regcache, regnum + 1, buf + 4); + regcache_raw_write (regcache, regnum + 2, buf + 8); + regcache_raw_write (regcache, regnum + 3, buf + 12); } else if (regnum >= SPARC64_Q32_REGNUM && regnum <= SPARC64_Q60_REGNUM) { regnum = SPARC64_F32_REGNUM + 2 * (regnum - SPARC64_Q32_REGNUM); regcache_raw_write (regcache, regnum, buf); - regcache_raw_write (regcache, regnum + 1, ((const char *)buf) + 8); + regcache_raw_write (regcache, regnum + 1, buf + 8); } else if (regnum == SPARC64_CWP_REGNUM || regnum == SPARC64_PSTATE_REGNUM @@ -639,7 +639,7 @@ sparc64_16_byte_align_p (struct type *type) static void sparc64_store_floating_fields (struct regcache *regcache, struct type *type, - const char *valbuf, int element, int bitpos) + const gdb_byte *valbuf, int element, int bitpos) { gdb_assert (element < 16); @@ -711,7 +711,7 @@ sparc64_store_floating_fields (struct regcache *regcache, struct type *type, static void sparc64_extract_floating_fields (struct regcache *regcache, struct type *type, - char *valbuf, int bitpos) + gdb_byte *valbuf, int bitpos) { if (sparc64_floating_p (type)) { @@ -877,11 +877,11 @@ sparc64_store_arguments (struct regcache *regcache, int nargs, for (i = 0; i < nargs; i++) { - const char *valbuf = value_contents (args[i]); + const gdb_byte *valbuf = value_contents (args[i]); struct type *type = value_type (args[i]); int len = TYPE_LENGTH (type); int regnum = -1; - char buf[16]; + gdb_byte buf[16]; if (sparc64_structure_or_union_p (type)) { @@ -1006,10 +1006,10 @@ sparc64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, static void sparc64_extract_return_value (struct type *type, struct regcache *regcache, - void *valbuf) + gdb_byte *valbuf) { int len = TYPE_LENGTH (type); - char buf[32]; + gdb_byte buf[32]; int i; if (sparc64_structure_or_union_p (type)) @@ -1047,10 +1047,10 @@ sparc64_extract_return_value (struct type *type, struct regcache *regcache, static void sparc64_store_return_value (struct type *type, struct regcache *regcache, - const void *valbuf) + const gdb_byte *valbuf) { int len = TYPE_LENGTH (type); - char buf[16]; + gdb_byte buf[16]; int i; if (sparc64_structure_or_union_p (type)) @@ -1089,8 +1089,8 @@ sparc64_store_return_value (struct type *type, struct regcache *regcache, static enum return_value_convention sparc64_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) { if (TYPE_LENGTH (type) > 32) return RETURN_VALUE_STRUCT_CONVENTION; @@ -1193,7 +1193,7 @@ sparc64_supply_gregset (const struct sparc_gregset *gregset, int regnum, const void *gregs) { int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32); - const char *regs = gregs; + const gdb_byte *regs = gregs; int i; if (sparc32) @@ -1202,7 +1202,7 @@ sparc64_supply_gregset (const struct sparc_gregset *gregset, { int offset = gregset->r_tstate_offset; ULONGEST tstate, psr; - char buf[4]; + gdb_byte buf[4]; tstate = extract_unsigned_integer (regs + offset, 8); psr = ((tstate & TSTATE_CWP) | PSR_S | ((tstate & TSTATE_ICC) >> 12) @@ -1241,7 +1241,7 @@ sparc64_supply_gregset (const struct sparc_gregset *gregset, if (regnum == SPARC64_Y_REGNUM || regnum == -1) { - char buf[8]; + gdb_byte buf[8]; memset (buf, 0, 8); memcpy (buf + 8 - gregset->r_y_size, @@ -1307,7 +1307,7 @@ sparc64_collect_gregset (const struct sparc_gregset *gregset, int regnum, void *gregs) { int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32); - char *regs = gregs; + gdb_byte *regs = gregs; int i; if (sparc32) @@ -1316,7 +1316,7 @@ sparc64_collect_gregset (const struct sparc_gregset *gregset, { int offset = gregset->r_tstate_offset; ULONGEST tstate, psr; - char buf[8]; + gdb_byte buf[8]; tstate = extract_unsigned_integer (regs + offset, 8); regcache_raw_collect (regcache, SPARC32_PSR_REGNUM, buf); @@ -1358,7 +1358,7 @@ sparc64_collect_gregset (const struct sparc_gregset *gregset, if (regnum == SPARC64_Y_REGNUM || regnum == -1) { - char buf[8]; + gdb_byte buf[8]; regcache_raw_collect (regcache, SPARC64_Y_REGNUM, buf); memcpy (regs + gregset->r_y_offset, @@ -1414,7 +1414,7 @@ sparc64_supply_fpregset (struct regcache *regcache, int regnum, const void *fpregs) { int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32); - const char *regs = fpregs; + const gdb_byte *regs = fpregs; int i; for (i = 0; i < 32; i++) @@ -1449,7 +1449,7 @@ sparc64_collect_fpregset (const struct regcache *regcache, int regnum, void *fpregs) { int sparc32 = (gdbarch_ptr_bit (current_gdbarch) == 32); - char *regs = fpregs; + gdb_byte *regs = fpregs; int i; for (i = 0; i < 32; i++) |