+2016-04-19 John Baldwin <jhb@FreeBSD.org>
+
+ * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Change xstateregs
+ to void *.
+ (amd64bsd_store_inferior_registers): Likewise.
+ * fbsd-nat.c (resume_one_thread_cb): Explicitly cast data to ptid_t *.
+ (resume_all_threads_cb): Likewise.
+ * i386bsd-nat.c (i386bsd_supply_gregset): Cast gregs to char *.
+ (i386bsd_collect_gregset): Likewise.
+ (i386bsd_fetch_inferior_registers): Change xstateregs to void *.
+ (i386bsd_store_inferior_registers): Likewise.
+
2016-04-19 John Baldwin <jhb@FreeBSD.org>
* main.c (setup_alternate_signal_stack): Cast to char *.
{
struct fpreg fpregs;
#ifdef PT_GETXSTATE_INFO
- char *xstateregs;
+ void *xstateregs;
if (amd64bsd_xsave_len != 0)
{
{
struct fpreg fpregs;
#ifdef PT_GETXSTATE_INFO
- char *xstateregs;
+ void *xstateregs;
if (amd64bsd_xsave_len != 0)
{
static int
resume_one_thread_cb (struct thread_info *tp, void *data)
{
- ptid_t *ptid = data;
+ ptid_t *ptid = (ptid_t *) data;
int request;
if (ptid_get_pid (tp->ptid) != ptid_get_pid (*ptid))
static int
resume_all_threads_cb (struct thread_info *tp, void *data)
{
- ptid_t *filter = data;
+ ptid_t *filter = (ptid_t *) data;
if (!ptid_match (tp->ptid, *filter))
return 0;
static void
i386bsd_supply_gregset (struct regcache *regcache, const void *gregs)
{
- const char *regs = gregs;
+ const char *regs = (const char *) gregs;
int regnum;
for (regnum = 0; regnum < ARRAY_SIZE (i386bsd_r_reg_offset); regnum++)
i386bsd_collect_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
- char *regs = gregs;
+ char *regs = (char *) gregs;
int i;
for (i = 0; i < ARRAY_SIZE (i386bsd_r_reg_offset); i++)
#ifdef PT_GETXSTATE_INFO
if (i386bsd_xsave_len != 0)
{
- char *xstateregs;
+ void *xstateregs;
xstateregs = alloca (i386bsd_xsave_len);
if (ptrace (PT_GETXSTATE, get_ptrace_pid (inferior_ptid),
#ifdef PT_GETXSTATE_INFO
if (i386bsd_xsave_len != 0)
{
- char *xstateregs;
+ void *xstateregs;
xstateregs = alloca (i386bsd_xsave_len);
if (ptrace (PT_GETXSTATE, get_ptrace_pid (inferior_ptid),