+2020-03-14 Kamil Rytarowski <n54@gmx.com>
+
+ * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
+ gdb_byte *.
+ * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
+ * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
+ * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
+
2020-03-14 Kamil Rytarowski <n54@gmx.com>
* m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
static void
m68kbsd_supply_gregset (struct regcache *regcache, const void *gregs)
{
- const char *regs = gregs;
+ const gdb_byte *regs = (const gdb_byte *) gregs;
int regnum;
for (regnum = M68K_D0_REGNUM; regnum <= M68K_PC_REGNUM; regnum++)
m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
{
struct gdbarch *gdbarch = regcache->arch ();
- const char *regs = fpregs;
+ const gdb_byte *regs = (const gdb_byte *) fpregs;
int regnum;
for (regnum = M68K_FP0_REGNUM; regnum <= M68K_FPI_REGNUM; regnum++)
m68kbsd_collect_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
- char *regs = gregs;
+ gdb_byte *regs = (gdb_byte *) gregs;
int i;
for (i = M68K_D0_REGNUM; i <= M68K_PC_REGNUM; i++)
tmp = pcb->pcb_ps & 0xffff;
regcache->raw_supply (M68K_PS_REGNUM, &tmp);
- read_memory (pcb->pcb_regs[PCB_REGS_FP] + 4, (char *) &tmp, sizeof tmp);
+ read_memory (pcb->pcb_regs[PCB_REGS_FP] + 4, (gdb_byte *) &tmp, sizeof tmp);
regcache->raw_supply (M68K_PC_REGNUM, &tmp);
return 1;