Last active
August 29, 2015 14:25
-
-
Save vvv/4d39642ef9c64425807a to your computer and use it in GitHub Desktop.
gdb-m0ut-bt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eu | |
M0UT=ut/.libs/lt-m0ut | |
[ -x $M0UT ] || { echo "$M0UT: No such file" >&2; exit 1; } | |
CORE=$(sudo ls -t $(sudo find /var/mero -type f -name core.\*) | head -1) | |
sudo gdb -nx -c $CORE $M0UT <<EOF | |
set pagination off | |
bt | |
p "XXX --------------------" | |
thread apply all bt | |
p "XXX --------------------" | |
thread apply all bt full | |
quit | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment