File: criterion.gdb

package info (click to toggle)
criterion 2.3.3git1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,832 kB
  • sloc: ansic: 17,852; cpp: 795; python: 72; sh: 27; makefile: 23
file content (25 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# GDB script to help with multi-inferior debugging on Criterion
# run with gdb ./your-test -x criterion.gdb

set follow-fork-mode child
set detach-on-fork off
set non-stop on
set target-async on
set schedule-multiple on
set print inferior-events off
set print thread-events off
handle SIGSTOP SIGCONT nostop noprint pass

define hookpost-start
    set criterion_options.crash = 1
end

define hook-run
    set breakpoint pending on
    tbreak main
    commands
        silent
        set criterion_options.crash = 1
        continue
    end
end