Dump debug version of BPF shared object (#5937)

This commit is contained in:
Jack May 2019-09-18 16:34:22 -07:00 committed by GitHub
parent 783e8672e7
commit 958cbe688b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,7 @@ perform_action() {
./do.sh build "$3"
cd "$3"
so="$targetDir"/"$profile"/solana_bpf_rust_"${3%/}".so
so="$targetDir"/"$profile"/solana_bpf_rust_"${3%/}"_debug.so
dump="$targetDir"/"${3%/}"-dump
if [ -f "$so" ]; then
@ -93,6 +93,8 @@ perform_action() {
< "${dump}-mangled.txt" \
| rustfilt \
> "${dump}.txt"
else
echo "Warning: No dump created, cannot find: $so"
fi
)
;;
@ -118,4 +120,4 @@ if [ "$#" -ne 2 ]; then
else
# Build requested project
perform_action "$1" "$PWD/$2" "$2"
fi
fi