diff options
Diffstat (limited to 'gdb/sun3-xdep.c')
-rw-r--r-- | gdb/sun3-xdep.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/sun3-xdep.c b/gdb/sun3-xdep.c index f6db72d..03cc3ae 100644 --- a/gdb/sun3-xdep.c +++ b/gdb/sun3-xdep.c @@ -41,9 +41,11 @@ fetch_inferior_registers (regno) registers_fetched (); - ptrace (PTRACE_GETREGS, inferior_pid, &inferior_registers); + ptrace (PTRACE_GETREGS, inferior_pid, + (PTRACE_ARG3_TYPE) &inferior_registers); #ifdef FP0_REGNUM - ptrace (PTRACE_GETFPREGS, inferior_pid, &inferior_fp_registers); + ptrace (PTRACE_GETFPREGS, inferior_pid, + (PTRACE_ARG3_TYPE) &inferior_fp_registers); #endif bcopy (&inferior_registers, registers, 16 * 4); @@ -88,9 +90,11 @@ store_inferior_registers (regno) sizeof inferior_fp_registers - sizeof inferior_fp_registers.fps_regs); #endif - ptrace (PTRACE_SETREGS, inferior_pid, &inferior_registers); + ptrace (PTRACE_SETREGS, inferior_pid, + (PTRACE_ARG3_TYPE) &inferior_registers); #if FP0_REGNUM - ptrace (PTRACE_SETFPREGS, inferior_pid, &inferior_fp_registers); + ptrace (PTRACE_SETFPREGS, inferior_pid, + (PTRACE_ARG3_TYPE) &inferior_fp_registers); #endif } |