Added multi thread backtrace output via ./run --backtrace

git-svn-id: http://voip.null.ro/svn/yate@2201 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-09-16 12:34:16 +00:00
parent 4ec224e5a3
commit 3fd0a5b6a3
2 changed files with 9 additions and 0 deletions

7
run.in
View File

@ -25,6 +25,13 @@ if [ "$1" = "--core" ]; then
set_conf=""
set_mods=""
fi
if [ "$1" = "--backtrace" ]; then
shift
yate="gdb -x tools/gdb-bt-all.txt $yate core*"
set_conf=""
set_mods=""
exec </dev/null 2>&1
fi
if [ "$1" = "--valgrind" ]; then
shift
yate="valgrind $1 $yate"

2
tools/gdb-bt-all.txt Normal file
View File

@ -0,0 +1,2 @@
thread apply all bt
quit