aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce/gce.go
diff options
context:
space:
mode:
authorAndrew Turner <andrew@fubar.geek.nz>2019-10-21 13:25:55 +0100
committerMichael Tüxen <tuexen@fh-muenster.de>2019-10-21 14:25:55 +0200
commitb24d2b8a213c09b511478e7eab5fa343e4a198de (patch)
treee5c1c459fedf77172e3f28ed935ded9a2391e675 /vm/gce/gce.go
parent8c88c9c1c99c8cd8dabc951164c820b9c9f25114 (diff)
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.
Diffstat (limited to 'vm/gce/gce.go')
-rw-r--r--vm/gce/gce.go3
1 files changed, 3 insertions, 0 deletions
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)
}