Created
June 7, 2012 08:42
-
-
Save neilxp/2887489 to your computer and use it in GitHub Desktop.
dumpstack
This file contains 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 | |
if test $# -ne 1; then | |
echo "Usage: `basename $0 .sh` PROGRAM" 1>&2 | |
exit 1 | |
fi | |
GDB=${GDB:-gdb} | |
if $GDB -nx --quiet --batch --readnever > /dev/null 2>&1; then | |
readnever=--readnever | |
else | |
readnever= | |
fi | |
# Run GDB, strip out unwanted noise. | |
$GDB --quiet $readnever -nx $1 <<EOF 2>&1 | |
info symbol 0x462328 | |
info symbol 0x4632ce | |
info symbol 0x46377f | |
info symbol 0x46377f | |
info symbol 0x46c7bd | |
info symbol 0x64ff4f | |
info symbol 0x6580cf | |
info symbol 0x65039e | |
info symbol 0x64faf7 | |
info symbol 0x64fb75 | |
info symbol 0x64d493 | |
info symbol 0x4e7369 | |
info symbol 0x515a66 | |
info symbol 0x4420c8 | |
info symbol 0x443edd | |
info symbol 0x447d45 | |
info symbol 0x4cedf7 | |
info symbol 0x4cf3cb | |
info symbol 0x634ba9 | |
info symbol 0x2b7e866da193 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment