From: Kamil Rytarowski Date: Sat, 14 Mar 2020 16:07:18 +0000 (+0100) Subject: m68k: bsd: Change type from char * to gdb_byte * X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc10778499a971ab9ccecb074cc406d49e1ee608;p=binutils-gdb.git m68k: bsd: Change type from char * to gdb_byte * * 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 *. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 13ea71852d8..6703f1d4ae0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2020-03-14 Kamil Rytarowski + + * 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 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c index 774b6084251..a3123a73199 100644 --- a/gdb/m68k-bsd-nat.c +++ b/gdb/m68k-bsd-nat.c @@ -57,7 +57,7 @@ m68kbsd_fpregset_supplies_p (int regnum) 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++) @@ -70,7 +70,7 @@ static void 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++) @@ -85,7 +85,7 @@ static void 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++) @@ -218,7 +218,7 @@ m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) 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;