blob: d5e32d1e7bd470a6a016578c24235078e1098bb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
# Debugging script for dwb, needs mercurial and gdb
BUILDDIR="/tmp/DWB_DEBUG_$UID"
LOGFILE="$BUILDDIR/gdb.log"
if [ ! -d ${BUILDDIR} ]; then
mkdir ${BUILDDIR}
fi
cd ${BUILDDIR}
echo $PWD
if [ ! -d ${BUILDDIR}/dwb ]; then
hg clone https://bitbucket.org/portix/dwb
cd ${BUILDDIR}/dwb
else
cd ${BUILDDIR}/dwb
hg pull
hg up
fi
cd ${BUILDDIR}/dwb/util
make
cd ${BUILDDIR}/dwb/src
make debug
gdb -batch -ex "set logging on ${LOGFILE}" -ex "run" -ex "bt" -ex "quit" dwb_d
|