[tbb] 01/01: Enhanced debugging, gdb shell

Steven Capper capper-guest at moszumanska.debian.org
Sat Jul 29 13:33:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

capper-guest pushed a commit to branch steve-staging
in repository tbb.

commit a7b8996b1e416f0c3d4b20cfe66007742260c2f3
Author: Steve Capper <steven.capper at gmail.com>
Date:   Sat Jul 29 13:26:08 2017 +0100

    Enhanced debugging, gdb shell
---
 debian/control                          |  2 +-
 debian/patches/enhanced-debugging.patch | 30 ++++++++++++++++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index f9bf0fb..21ec680 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,7 @@
 Source: tbb
 Priority: extra
 Maintainer: Steve Capper <steven.capper at gmail.com>
-Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), libjs-jquery, dh-exec (>=0.3)
+Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~), libjs-jquery, dh-exec (>=0.3), gdb
 Standards-Version: 4.0.0
 Section: libs
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/tbb.git
diff --git a/debian/patches/enhanced-debugging.patch b/debian/patches/enhanced-debugging.patch
new file mode 100644
index 0000000..02b081c
--- /dev/null
+++ b/debian/patches/enhanced-debugging.patch
@@ -0,0 +1,30 @@
+Index: tbb/build/gdb_shell.sh
+===================================================================
+--- /dev/null
++++ tbb/build/gdb_shell.sh
+@@ -0,0 +1,25 @@
++#!/bin/sh
++
++# Run some tests through gdb, we rely on a hack to detect whether or
++# or not the run completed successfully. $_exitcode will be set if the
++# test finishes without breaking.
++# If the test breaks, we dump a full backtrace.
++
++programname=$1
++shift
++args=$@
++temp_file=$(mktemp)
++
++cat >$temp_file <<EOF
++set pagination off
++set \$_exitcode=3142
++b main
++r $args
++if \$_exitcode==3142
++    bt full
++end
++quit
++EOF
++
++gdb $programname -x $temp_file
++rm $temp_file
diff --git a/debian/patches/series b/debian/patches/series
index 17ac0bd..ba9f415 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -11,3 +11,4 @@ cross.patch
 fix-armel.patch
 allow-reproducible-builds.patch
 fixup-mips-harness.patch
+enhanced-debugging.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/tbb.git



More information about the debian-science-commits mailing list