telepathy-haze: exec-with-log.sh: add HAZE_TEST_BACKTRACE hook
Simon McVittie
smcv at kemper.freedesktop.org
Tue Sep 24 04:14:09 PDT 2013
Module: telepathy-haze
Branch: master
Commit: 95a65bfe57f7241a96fcb7a598485b076a7c185c
URL: http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=95a65bfe57f7241a96fcb7a598485b076a7c185c
Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date: Mon Sep 23 17:47:55 2013 +0100
exec-with-log.sh: add HAZE_TEST_BACKTRACE hook
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=31723
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
---
tests/twisted/tools/exec-with-log.sh | 2 ++
tools/run_and_bt.gdb | 7 +++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tools/exec-with-log.sh b/tests/twisted/tools/exec-with-log.sh
index 54abf29..e6e9379 100755
--- a/tests/twisted/tools/exec-with-log.sh
+++ b/tests/twisted/tools/exec-with-log.sh
@@ -38,6 +38,8 @@ elif test -n "$HAZE_TEST_REFDBG"; then
if test -z "$HAZE_WRAPPER" ; then
HAZE_WRAPPER="refdbg"
fi
+elif test -n "$HAZE_TEST_BACKTRACE"; then
+ HAZE_WRAPPER="gdb -x ${abs_top_srcdir}/tools/run_and_bt.gdb"
fi
# not suitable for haze:
diff --git a/tools/run_and_bt.gdb b/tools/run_and_bt.gdb
new file mode 100644
index 0000000..201353f
--- /dev/null
+++ b/tools/run_and_bt.gdb
@@ -0,0 +1,7 @@
+run
+echo ---- [bt full] -------------------------------------------\n
+bt full
+echo -----[thread apply all bt full] --------------------------\n
+thread apply all bt full
+echo ----------------------------------------------------------\n
+quit
More information about the telepathy-commits
mailing list