]> Cypherpunks repositories - gostls13.git/commit
runtime: add debugger hook for fatal signals
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Wed, 17 May 2023 13:33:07 +0000 (15:33 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 5 Jun 2023 17:00:46 +0000 (17:00 +0000)
commitd8c9eece2828195e5488b63ba80f98c31b182953
tree33f64a37030f8b1798f301fb7c5168cc8668473c
parent587c1c191adb8a069beed925b9c402a7e8e4d871
runtime: add debugger hook for fatal signals

On Go <= 1.20 signals that caused the program to exit would eventually
call runtime.fatal. After the changes made in go.dev/cl/462437 but it
would still be nice if debuggers (eg. Delve) had a function they could
hook to intercept fatal signals.

Change-Id: Icf2b65187f95d52e60825c84f386806a75b38f6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/495736
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/signal_unix.go