Dump debug version of BPF shared object (#5937)
This commit is contained in:
@ -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
|
||||||
)
|
)
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user