Revert "Check alignment of fp in unwind_frame"
Fix the build as is_aligned doesn't exist in FreeBSD.
This reverts commit 40e0fa10f5
.
This commit is contained in:
parent
48767d8734
commit
ba2bbac4c1
@ -41,8 +41,7 @@ unwind_frame(struct thread *td, struct unwind_state *frame)
|
||||
|
||||
fp = frame->fp;
|
||||
|
||||
if (!is_aligned(fp, sizeof(fp)) ||
|
||||
!kstack_contains(td, fp, sizeof(fp) * 2))
|
||||
if (!kstack_contains(td, fp, sizeof(uintptr_t) * 2))
|
||||
return (false);
|
||||
|
||||
/* FP to previous frame (X29) */
|
||||
|
@ -47,8 +47,7 @@ unwind_frame(struct thread *td, struct unwind_state *frame)
|
||||
|
||||
fp = frame->fp;
|
||||
|
||||
if (!is_aligned(fp, sizeof(fp)) ||
|
||||
!kstack_contains(td, fp - sizeof(fp) * 2, sizeof(fp) * 2))
|
||||
if (!kstack_contains(td, fp - sizeof(fp) * 2, sizeof(fp) * 2))
|
||||
return (false);
|
||||
|
||||
frame->sp = fp;
|
||||
|
Loading…
Reference in New Issue
Block a user