From 21002a635bf3da33367592e3a3ab3cce24fe5299 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 19 Jan 2016 11:02:09 -0800 Subject: Handle void * conversions in FreeBSD/x86 native code to fix C++ build. gdb/ChangeLog: * 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. --- gdb/amd64bsd-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/amd64bsd-nat.c') diff --git a/gdb/amd64bsd-nat.c b/gdb/amd64bsd-nat.c index fb7e4fa..e278a91 100644 --- a/gdb/amd64bsd-nat.c +++ b/gdb/amd64bsd-nat.c @@ -65,7 +65,7 @@ amd64bsd_fetch_inferior_registers (struct target_ops *ops, { struct fpreg fpregs; #ifdef PT_GETXSTATE_INFO - char *xstateregs; + void *xstateregs; if (amd64bsd_xsave_len != 0) { @@ -118,7 +118,7 @@ amd64bsd_store_inferior_registers (struct target_ops *ops, { struct fpreg fpregs; #ifdef PT_GETXSTATE_INFO - char *xstateregs; + void *xstateregs; if (amd64bsd_xsave_len != 0) { -- cgit v1.1