File: mg_build_breakpad_stacktrace.sh

package info (click to toggle)
megaglest 3.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 18,172 kB
  • ctags: 26,052
  • sloc: cpp: 140,512; ansic: 66,187; python: 3,761; sh: 2,986; perl: 1,899; php: 1,247; objc: 1,111; makefile: 259; sql: 139
file content (20 lines) | stat: -rwxr-xr-x 700 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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}