From d13d795888186e87aeec9ce670986d183036c348 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 16 Dec 2019 19:37:13 +0100 Subject: tools/syz-runtest: debug all programs in debug mode --- pkg/runtest/run.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg') diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index 2b0fb982e..399fb2f49 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -59,6 +59,7 @@ type Context struct { LogFunc func(text string) Retries int // max number of test retries to deal with flaky tests Verbose bool + Debug bool Tests string // prefix to match test file names } @@ -376,6 +377,9 @@ func (ctx *Context) createSyzTest(p *prog.Prog, sandbox string, threaded, cov bo if ctx.Features[host.FeatureDevlinkPCI].Enabled { cfg.Flags |= ipc.FlagEnableDevlinkPCI } + if ctx.Debug { + cfg.Flags |= ipc.FlagDebug + } req := &RunRequest{ P: p, Cfg: cfg, -- cgit mrf-deployment