Skip to content

Commit

Permalink
use gdb to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Dec 5, 2023
1 parent 71faccf commit 5d31818
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,14 @@ jobs:
export OPENSSL_LIB_DIR=${TOP_DIR}/openssl-3.1.3/custom_build
export OPENSSL_INCLUDE_DIR=${TOP_DIR}/openssl-3.1.3/custom_build/include
export OPENSSL_STATIC=1
make ${{ matrix.build_target }}
otool -L ./target/prod/ckb
./target/prod/ckb --version
ls -ahl ./target/prod/ckb
# make ${{ matrix.build_target }}
RUSTFLAGS=-g cargo build
otool -L ./target/debug/ckb
gdb -batch -ex "set logging enable on" -ex "b main" -ex "continue" -ex "b main" -ex "r" -ex "bt full" -ex "quit" ./target/debug/ckb
./target/debug/ckb --version
ls -ahl ./target/debug/ckb
CKB_TEMP_TEST_DIR=$(mktemp -d)
./target/prod/ckb init -C ${CKB_TEMP_TEST_DIR}
./target/debug/ckb init -C ${CKB_TEMP_TEST_DIR}
rm -rfv ${CKB_TEMP_TEST_DIR}
env:
Expand Down

0 comments on commit 5d31818

Please sign in to comment.