aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-xdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386-xdep.c')
-rw-r--r--gdb/i386-xdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-xdep.c b/gdb/i386-xdep.c
index 65bba6f..38ba8f0 100644
--- a/gdb/i386-xdep.c
+++ b/gdb/i386-xdep.c
@@ -194,7 +194,7 @@ i386_float_info ()
unsigned int mask;
rounded_addr = uaddr & -sizeof (int);
- data = ptrace (3, inferior_pid, rounded_addr, 0);
+ data = ptrace (3, inferior_pid, (PTRACE_ARG3_TYPE) rounded_addr, 0);
mask = 0xff << ((uaddr - rounded_addr) * 8);
fpvalid = ((data & mask) != 0);
@@ -229,7 +229,7 @@ i386_float_info ()
ip = (int *)buf;
for (i = 0; i < rounded_size; i++)
{
- *ip++ = ptrace (3, inferior_pid, rounded_addr, 0);
+ *ip++ = ptrace (3, inferior_pid, (PTRACE_ARG3_TYPE) rounded_addr, 0);
rounded_addr += sizeof (int);
}
}