added scripts to produce google-breakpad symbols and produce a stacktrace from a dmp
This commit is contained in:
parent
748763f0f1
commit
1ddf7db804
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
# Use this script to produce a google-breakpad stacktrace from a megaglest dmp file
|
||||
# ----------------------------------------------------------------------------
|
||||
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
||||
# Copyright (c) 2013 Mark Vejvoda under GNU GPL v3.0+
|
||||
|
||||
CURRENTDIR="$(dirname $(readlink -f $0))"
|
||||
SYMBOLS_DIR=${CURRENTDIR}/"linux_symbols"
|
||||
|
||||
usage(){
|
||||
echo "Syntax : $0 yourcrashfile.dmp
|
||||
echo "Example: $0 ./328eaddc-c1d5-9eee-3ca1e6a4-0ce3f6a6.dmp
|
||||
exit 1
|
||||
}
|
||||
|
||||
[ $# -eq 0 ] && usage
|
||||
|
||||
echo "About to produce stack trace for $1"
|
||||
echo "Symbols folder: ${SYMBOLS_DIR}"
|
||||
${CURRENTDIR}/../../google-breakpad/src/processor/minidump_stackwalk $1 ${CURRENTDIR}/${SYMBOLS_DIR}
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
# Use this script to produce a google-breakpad symbol file for megaglest
|
||||
# ----------------------------------------------------------------------------
|
||||
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
||||
# Copyright (c) 2013 Mark Vejvoda under GNU GPL v3.0+
|
||||
|
||||
CURRENTDIR="$(dirname $(readlink -f $0))"
|
||||
SYMBOLS_DIR=${CURRENTDIR}/"linux_symbols"
|
||||
|
||||
mkdir -p ${SYMBOLS_DIR}
|
||||
echo "Symbols folder: ${SYMBOLS_DIR}"
|
||||
python ${CURRENTDIR}/symbolstore.py ${CURRENTDIR}/../../google-breakpad/src/tools/linux/dump_syms/dump_syms ${SYMBOLS_DIR} ${CURRENTDIR}/megaglest
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Use this script to idenitfy previous and current Version for a Version Release
|
||||
# ----------------------------------------------------------------------------
|
||||
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
||||
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
|
||||
|
||||
CURRENTDIR="$(dirname $(readlink -f $0))"
|
||||
GOOGLE_BREAKPAD_DIR="$CURRENTDIR/../../google-breakpad/"
|
||||
#$GOOGLE_BREAKPAD_DIR/src/tools/linux/dump_syms/dump_syms ./megaglest > megaglest.sym
|
||||
#head -n1 megaglest.sym
|
||||
python ./symbolstore.py $GOOGLE_BREAKPAD_DIR/src/tools/linux/dump_syms/dump_syms ./symbols ./megaglest
|
||||
echo 'SYMBOLS FILE BUILD COMPLETE.'
|
||||
echo 'To get a stack trace run:'
|
||||
echo "$GOOGLE_BREAKPAD_DIR/src/processor/minidump_stackwalk ./328eaddc-c1d5-9eee-3ca1e6a4-0ce3f6a6.dmp symbols"
|
||||
echo 'Where the dmp file can be replaced with your dmp file.'
|
Loading…
Reference in New Issue