forked from anza-xyz/move
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SBF instruction tracing to the rbpf-tests driver. (anza-xyz#193)
This patch allows the user to turn on SBF instruction tracing/disassembly for a rbpf case. This is an extremely valuable debugging tool when an rbpf test crashes in the move-native library-- or perhaps worse-- in core rust libraries. This code is copied and integrated from the Solana ledger-tool. To enable, set environment variable TRACE to a filename where the output will be directed. Setting TRACE= or TRACE=stdout writes output to stdout: TRACE=foo.txt cargo test -p move-mv-llvm-compiler --test rbpf-tests foo-test Co-authored-by: Dmitri Makarov <dmakarov@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
81 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters