Skip to content

Commit

Permalink
Run gdb from test dir
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Oct 14, 2023
1 parent 5d3496c commit 73ea732
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ if $GENERIC_ENABLE_TESTS; then
mkdir -p \$HOME
make test ARGS="-VV ${BUILDING_EXTRA_MAKETEST_PARAMS}" || true
if [[ -d $WORKSPACE/core_dumps ]]; then
cd $WORKSPACE/core_dumps
for corefile in core.*
for corefile in core_dumps/core.*
do
gdb --batch -ex "sharedlibrary; thread apply all bt" --core \$corefile | tee \${corefile}_backtrace.txt
gdb --batch -ex "sharedlibrary; thread apply all bt" --core \$corefile | tee core_dumps/\${corefile}_backtrace.txt
done
fi
stop_stopwatch TEST
Expand Down

0 comments on commit 73ea732

Please sign in to comment.