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:
jhibbits 2017-09-17 20:07:20 +00:00
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);
}