aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-nat.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2016-01-19 11:02:09 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2016-04-19 15:42:17 -0700
commit21002a635bf3da33367592e3a3ab3cce24fe5299 (patch)
tree18f3d5a85e383eb97734feea41db8b59765712d0 /gdb/fbsd-nat.c
parentf39c07acc8c4039534a9c6f1757de82afe66ecd5 (diff)
downloadfsf-binutils-gdb-21002a635bf3da33367592e3a3ab3cce24fe5299.zip
fsf-binutils-gdb-21002a635bf3da33367592e3a3ab3cce24fe5299.tar.gz
fsf-binutils-gdb-21002a635bf3da33367592e3a3ab3cce24fe5299.tar.bz2
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.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r--gdb/fbsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index bdf078e..b582abe 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -428,7 +428,7 @@ static void (*super_resume) (struct target_ops *,
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))
@@ -447,7 +447,7 @@ resume_one_thread_cb (struct thread_info *tp, void *data)
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;