diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-23 17:47:55 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-09-24 12:13:25 +0100 |
commit | 95a65bfe57f7241a96fcb7a598485b076a7c185c (patch) | |
tree | e46f1519c6462cba4b7022b86eb53ab84cebe685 | |
parent | b17f5331cfd81f31be67939fd0b0d2ebcc52350d (diff) | |
download | telepathy-haze-95a65bfe57f7241a96fcb7a598485b076a7c185c.tar.gz |
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@collabora.co.uk>
-rwxr-xr-x | tests/twisted/tools/exec-with-log.sh | 2 | ||||
-rw-r--r-- | 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 |