runtime: populate signal PC on NetBSD
authorNikhil Benesch <nikhil.benesch@gmail.com>
Tue, 13 Oct 2020 06:51:30 +0000 (06:51 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 14 Oct 2020 05:21:53 +0000 (22:21 -0700)
commit7e5aeda340d71a84fbd15504e848a949b2a00d5a
tree20a7a0b1a241d3b612d36792032e91faf7f442a4
parent7355c1df55e28f3298b14a621968f9a27fdcd2bf
runtime: populate signal PC on NetBSD

The NetBSD libc provides an architecture-independent macro that can
extract the PC from a ucontext struct.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/261740
gcc/go/gofrontend/MERGE
libgo/runtime/go-signal.c