Dump debug version of BPF shared object (#5937)
This commit is contained in:
parent
783e8672e7
commit
958cbe688b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue