aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2019-02-09 17:23:53 +0100
committerGreg Steuck <blackgnezdo@gmail.com>2019-02-09 08:23:53 -0800
commitc69659e3523cba959b06e05d4a5e44e52c31ddd2 (patch)
tree3dc24d643fbb2388bdf23cb7b4c3b60acfa4980e /vm/vmimpl
parentd75f7686f1970e09ce7bafc57f8099651099b3a9 (diff)
openbsd: remove shorten report logic (#986)
A line length of 79 in the ddb output does not necessarily imply that the following line is a continuation of the current line. Since there's no way to distinguish between ordinary and continuation lines, it could end up corrupting the report by joining two lines that are disjoint[1]. Instead, disable line wrapping in ddb. If we want some kind of wrapping in the future it's easier done by pkg/report. [1] https://syzkaller.appspot.com/bug?extid=03f7377a9848d7d008c9
Diffstat (limited to 'vm/vmimpl')
-rw-r--r--vm/vmimpl/openbsd.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vmimpl/openbsd.go b/vm/vmimpl/openbsd.go
index c758bd5e4..5e5ce3d3f 100644
--- a/vm/vmimpl/openbsd.go
+++ b/vm/vmimpl/openbsd.go
@@ -15,7 +15,8 @@ import (
func DiagnoseOpenBSD(w io.Writer) bool {
commands := []string{
"",
- "set $lines = 0", // disable pagination
+ "set $lines = 0", // disable pagination
+ "set $maxwidth = 0", // disable line continuation
"show panic",
"trace",
"show registers",