aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68k-bsd-nat.c
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2020-03-14 17:07:18 +0100
committerKamil Rytarowski <n54@gmx.com>2020-03-14 17:07:18 +0100
commitbc10778499a971ab9ccecb074cc406d49e1ee608 (patch)
treebbb498ba1b784384fbb022bf3a7d869324c801bc /gdb/m68k-bsd-nat.c
parent01a801176ea15ddfc988cade2e3d84c3b0abfec3 (diff)
downloadgdb-bc10778499a971ab9ccecb074cc406d49e1ee608.zip
gdb-bc10778499a971ab9ccecb074cc406d49e1ee608.tar.gz
gdb-bc10778499a971ab9ccecb074cc406d49e1ee608.tar.bz2
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 *.
Diffstat (limited to 'gdb/m68k-bsd-nat.c')
-rw-r--r--gdb/m68k-bsd-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c
index 774b608..a3123a7 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;