Skip to content

Commit

Permalink
docs: document test debugging with GDB (#756)
Browse files Browse the repository at this point in the history
Signed-off-by: William Henderson <[email protected]>
  • Loading branch information
w-henderson authored Aug 2, 2023
1 parent 8038da1 commit 53f85b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ LIBVFIO_SO_DIR='/root/src/libvfio-user/build/lib' pytest-3 test/py/test_quiesce.

To print libvfio-user's log messages, append the `--capture=tee-sys` option.

To use GDB to debug libvfio-user code called from Python unit tests, add a
`time.sleep` somewhere to give you time to attach to the process and set
breakpoints, run the tests with
```
meson test -C build --timeout-multiplier=10000
```
to prevent the test process from being killed by meson, and attach to the
`python3` process in the usual way using
```
gdb --pid=<pid>
```

AFL++
-----

Expand Down

0 comments on commit 53f85b9

Please sign in to comment.