Add explicit cast to fix build of vax-bsd-nat.c
gdb/ChangeLog: * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *. * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
This commit is contained in:
parent
d5be5fa420
commit
1275307303
@ -1,3 +1,8 @@
|
||||
2020-03-14 Kamil Rytarowski <n54@gmx.com>
|
||||
|
||||
* vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *.
|
||||
* vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
|
||||
|
||||
2020-03-14 Kamil Rytarowski <n54@gmx.com>
|
||||
|
||||
* vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
|
||||
|
@ -45,7 +45,7 @@ static vax_bsd_nat_target the_vax_bsd_nat_target;
|
||||
static void
|
||||
vaxbsd_supply_gregset (struct regcache *regcache, const void *gregs)
|
||||
{
|
||||
const gdb_byte *regs = gregs;
|
||||
const gdb_byte *regs = (const gdb_byte *)gregs;
|
||||
int regnum;
|
||||
|
||||
for (regnum = 0; regnum < VAX_NUM_REGS; regnum++)
|
||||
@ -59,7 +59,7 @@ static void
|
||||
vaxbsd_collect_gregset (const struct regcache *regcache,
|
||||
void *gregs, int regnum)
|
||||
{
|
||||
gdb_byte *regs = gregs;
|
||||
gdb_byte *regs = (void *)gregs;
|
||||
int i;
|
||||
|
||||
for (i = 0; i <= VAX_NUM_REGS; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user