From b24d2b8a213c09b511478e7eab5fa343e4a198de Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Mon, 21 Oct 2019 13:25:55 +0100 Subject: vm: Get debug information when FreeBSD on panics (#1470) The FreeBSD kernel debugger can provide more information when the kernel panics. Add support to bhybe and gce to print this information. --- vm/gce/gce.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/gce') diff --git a/vm/gce/gce.go b/vm/gce/gce.go index cad34addf..98ab494dd 100644 --- a/vm/gce/gce.go +++ b/vm/gce/gce.go @@ -370,6 +370,9 @@ func waitForConsoleConnect(merger *vmimpl.OutputMerger) error { } func (inst *instance) Diagnose() ([]byte, bool) { + if inst.env.OS == "freebsd" { + return nil, vmimpl.DiagnoseFreeBSD(inst.consolew) + } if inst.env.OS == "openbsd" { return nil, vmimpl.DiagnoseOpenBSD(inst.consolew) } -- cgit mrf-deployment