Skip to content

Commit

Permalink
tests: collect gdb commands
Browse files Browse the repository at this point in the history
Collect all openssl calls of the test script as gdb-commands to a file
in TMPPDIR, to make debugging easier.

Debugging sequence example:
- run the tests (make check)
- uncomment the line in gdb-commands.txt you want to debug
- prepare the debugging environment (source debugvars)
- start openssl in gdb, set breakpoints and importi/source the
  gdb-commands.txt

Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
  • Loading branch information
holger-dengler authored and simo5 committed Nov 17, 2022
1 parent 8e910a5 commit 47e1c47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ cleanup_server()

ossl()
{
echo "# r "$* >> ${TMPPDIR}/gdb-commands.txt
echo openssl $*
eval openssl $1
}
Expand Down

0 comments on commit 47e1c47

Please sign in to comment.