diff --git a/internal/crashmonitor/monitor.go b/internal/crashmonitor/monitor.go index f475f7e..2562adb 100644 --- a/internal/crashmonitor/monitor.go +++ b/internal/crashmonitor/monitor.go @@ -26,7 +26,7 @@ import ( // TODO(adonovan): eliminate once go1.23+ is assured. func Supported() bool { return setCrashOutput != nil } -var setCrashOutput func(*os.File) error // = runtime.SetCrashOutput on go1.23+ +var setCrashOutput func(*os.File, debug.CrashOptions) error // = runtime.SetCrashOutput on go1.23+ // Parent sets up the parent side of the crashmonitor. It requires // exclusive use of a writable pipe connected to the child process's stdin. @@ -34,7 +34,7 @@ func Parent(pipe *os.File) { writeSentinel(pipe) // Ensure that we get pc=0x%x values in the traceback. debug.SetTraceback("system") - setCrashOutput(pipe) + setCrashOutput(pipe, debug.CrashOptions{}) } // Child runs the part of the crashmonitor that runs in the child process.