Skip to content

Commit

Permalink
gdb requires the Windows process id
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-webb committed Oct 16, 2024
1 parent 258bb98 commit 3e673bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-msys2-ucrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ jobs:
do
$test_exe -v &
test_pid=$!
test_winpid=`ps -W -p $test_pid | grep '^ *[0-9]' | sed -E 's/ *[0-9]+ +[0-9]+ +[0-9]+ +([0-9]+).*/\1/'`
sleep 8s
if ps -p $test_pid > /dev/null; then
gdb $test_exe --pid=$test_pid <<EOT
gdb $test_exe --pid=$test_winpid <<EOT
info threads
thread apply all backtrace
EOT
Expand Down

0 comments on commit 3e673bf

Please sign in to comment.