Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug Improvements #107

Merged
merged 2 commits into from
Nov 17, 2022
Merged

Debug Improvements #107

merged 2 commits into from
Nov 17, 2022

Conversation

holger-dengler
Copy link
Collaborator

This PR covers some minor debugging improvements. The first commit creates unset script for each module, which is meant to undo the environment settings of its debugvars script. This allows a clean and easy switch between different test modules (softokn <--> softhsm) for debugging. The second commit makes the executed openssl commands easily accessible in gdb.

@holger-dengler
Copy link
Collaborator Author

Rebased to origin:main (force update).

The tests generates debugvars scripts to set the environment variables
for debugging a test module. The generated unsetvars script helps to
cleanup the environment after the debugging session.

Signed-off-by: Holger Dengler <[email protected]>
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 <[email protected]>
@holger-dengler
Copy link
Collaborator Author

Fix unset script generation (debugvars --> testvars)

@simo5 simo5 merged commit 47e1c47 into latchset:main Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants