diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-05-18 19:18:26 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-06-12 19:48:23 +0200 |
| commit | 120e26c2fecf4fcabc18af43329171d6afba02b4 (patch) | |
| tree | 9e4668c6d0610d63217eb22dde910e8b18357e87 /csource/csource.go | |
| parent | c99b02d2248fbdcd6f44037326b16c928f4423f1 (diff) | |
csourse: don't generate debug printfs
Diffstat (limited to 'csource/csource.go')
| -rw-r--r-- | csource/csource.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/csource/csource.go b/csource/csource.go index ae3e54df8..3eeb369dc 100644 --- a/csource/csource.go +++ b/csource/csource.go @@ -37,6 +37,7 @@ type Options struct { UseTmpDir bool HandleSegv bool WaitRepeat bool + Debug bool // Generate code for use with repro package to prints log messages, // which allows to distinguish between a hang and an absent crash. @@ -385,6 +386,9 @@ func preprocessCommonHeader(opts Options, handled map[string]int, useBitmasks bo if opts.WaitRepeat { defines = append(defines, "SYZ_WAIT_REPEAT") } + if opts.Debug { + defines = append(defines, "SYZ_DEBUG") + } for name, _ := range handled { defines = append(defines, "__NR_"+name) } |
