File: backtrace.sh

package info (click to toggle)
dwb 20140702hg-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,860 kB
  • ctags: 2,802
  • sloc: ansic: 27,062; makefile: 341; sh: 84
file content (24 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash 

# Debugging script for dwb, needs gdb 

BUILDDIR="/tmp/DWB_DEBUG_$UID"
LOGFILE="$BUILDDIR/gdb.log"
DWBDIR="${BUILDDIR}/dwb"


if [ ! -d "${DWBDIR}" ]; then 
  mkdir -p "${DWBDIR}"
fi
  
cd ${BUILDDIR}
wget https://bitbucket.org/portix/dwb/get/master.tar.gz 
tar xvf master.tar.gz -C "${DWBDIR}" --strip-components=1
 
cd "${DWBDIR}/src/util"
make
cd "${DWBDIR}/exar"
make
cd "${DWBDIR}/src"
make debug
gdb -batch -ex "set logging on ${LOGFILE}" -ex "run" -ex "bt" -ex "quit" dwb_d