You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
340 B

#!/usr/bin/env bash
shopt -s nullglob
export LC_ALL=C
for i in /tmp/core_*.*; do
if [ -f "$i" -a "$(file "$i" | grep -o 'core file')" ]; then
gdb -q /home/travis/.phpenv/versions/`php-config --version`/bin/php "$i" <<EOF
set pagination 0
backtrace full
info registers
x/16i \$pc
thread apply all backtrace
quit
EOF
fi
done