Don't use a non-zero argument for __builtin_frame_address
__builtin_frame_address with a non-zero argument is unsafe and rejected by newer gcc. Since it doesn't seem to impact the stacktrace, don't bother with gymnastics to unwind to a different frame for starting. PR: kern/220118 MFC after: 2 weeks
This commit is contained in:
parent
282583f028
commit
95246a563c
@ -110,6 +110,6 @@ stack_save(struct stack *st)
|
||||
{
|
||||
register_t frame;
|
||||
|
||||
frame = (register_t)__builtin_frame_address(1);
|
||||
frame = (register_t)__builtin_frame_address(0);
|
||||
stack_capture(st, frame);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user