mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 12:03:41 +01:00
Cast caddr_t argument for ptrace
This commit is contained in:
parent
200147d0f2
commit
d7eea91448
1 changed files with 2 additions and 2 deletions
|
@ -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]))
|
||||
return -UNW_EBADREG;
|
||||
|
||||
if (ptrace(PT_GETFPREGS, pid, &fpreg, 0) == -1)
|
||||
if (ptrace(PT_GETFPREGS, pid, (caddr_t)&fpreg, 0) == -1)
|
||||
return -UNW_EBADREG;
|
||||
if (write) {
|
||||
#if defined(__amd64__)
|
||||
|
@ -88,7 +88,7 @@ _UPT_access_fpreg (unw_addr_space_t as, unw_regnum_t reg, unw_fpreg_t *val,
|
|||
#else
|
||||
#error Fix me
|
||||
#endif
|
||||
if (ptrace(PT_SETFPREGS, pid, &fpreg, 0) == -1)
|
||||
if (ptrace(PT_SETFPREGS, pid, (caddr_t)&fpreg, 0) == -1)
|
||||
return -UNW_EBADREG;
|
||||
} else
|
||||
#if defined(__amd64__)
|
||||
|
|
Loading…
Reference in a new issue