diff options
-rw-r--r-- | tests/twisted/tools/exec-with-log.sh.in | 2 | ||||
-rw-r--r-- | tools/Makefile.am | 1 | ||||
-rw-r--r-- | tools/run_and_bt.gdb | 7 |
3 files changed, 10 insertions, 0 deletions
diff --git a/tests/twisted/tools/exec-with-log.sh.in b/tests/twisted/tools/exec-with-log.sh.in index 9ff5a899..74bc56dd 100644 --- a/tests/twisted/tools/exec-with-log.sh.in +++ b/tests/twisted/tools/exec-with-log.sh.in @@ -50,6 +50,8 @@ elif test -n "$MISSIONCONTROL_TEST_REFDBG"; then if test -z "$MISSIONCONTROL_WRAPPER" ; then MISSIONCONTROL_WRAPPER="refdbg" fi +elif test -n "$MISSIONCONTROL_TEST_BACKTRACE"; then + MISSIONCONTROL_WRAPPER="gdb -x @abs_top_srcdir@/tools/run_and_bt.gdb" fi # The bus-daemon that is activating us doesn't know it's also the system bus diff --git a/tools/Makefile.am b/tools/Makefile.am index 7426080f..befd2666 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -15,6 +15,7 @@ EXTRA_DIST = \ lcov.am \ libtpcodegen.py \ libglibcodegen.py \ + run_and_bt.gdb \ spec-to-introspect.xsl \ telepathy.am diff --git a/tools/run_and_bt.gdb b/tools/run_and_bt.gdb new file mode 100644 index 00000000..201353fe --- /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 |