1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-26 09:07:38 +01:00

Cast caddr_t argument for ptrace

This commit is contained in:
Konstantin Belousov 2010-03-07 12:27:03 +02:00
parent 200147d0f2
commit d7eea91448

View file

@ -78,7 +78,7 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
if ((unsigned) reg >= sizeof (_UPT_reg_offset) / sizeof (_UPT_reg_offset[0])) if ((unsigned) reg >= sizeof (_UPT_reg_offset) / sizeof (_UPT_reg_offset[0]))
return -UNW_EBADREG; return -UNW_EBADREG;
if (ptrace(PT_GETFPREGS, pid, &fpreg, 0) == -1) if (ptrace(PT_GETFPREGS, pid, (caddr_t)&fpreg, 0) == -1)
return -UNW_EBADREG; return -UNW_EBADREG;
if (write) { if (write) {
#if defined(__amd64__) #if defined(__amd64__)
@ -88,7 +88,7 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
#else #else
#error Fix me #error Fix me
#endif #endif
if (ptrace(PT_SETFPREGS, pid, &fpreg, 0) == -1) if (ptrace(PT_SETFPREGS, pid, (caddr_t)&fpreg, 0) == -1)
return -UNW_EBADREG; return -UNW_EBADREG;
} else } else
#if defined(__amd64__) #if defined(__amd64__)