]> git.saurik.com Git - apt.git/commitdiff
tests: set source directory for gdb
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 16 Aug 2016 05:38:18 +0000 (07:38 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 17 Aug 2016 05:55:46 +0000 (07:55 +0200)
Helps interactive gdb calls find the source code.

Gbp-Dch: Ignore

test/integration/framework

index 8a95d79bbe1e013c2e3cec31a71238aa219d39c5..8d124858be3daab8a29b5c347eebf4730888063f 100644 (file)
@@ -216,7 +216,7 @@ gdb() {
        if [ "${CMD##*/}" = "$CMD" ]; then
                CMD="${BUILDDIRECTORY}/${CMD}"
        fi
-       runapt command gdb --quiet -ex run "$CMD" --args "$CMD" "$@"
+       runapt command gdb --quiet -ex "directory '$SOURCEDIRECTORY'" -ex run "$CMD" --args "$CMD" "$@"
 }
 lastmodification() {
        date -u -d "@$(stat -c '%Y' "${TMPWORKINGDIRECTORY}/$1")" -R