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

View File

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