From af7e3dadf9b26cbd817ae5638d37796482694282 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 22 Dec 2007 00:47:48 -0600 Subject: r26561: Fix make gdbtest, valgrindtest and testenv for shared libs. (This used to be commit d2b9055bc032506849827d6fab2d2b9d35d132e2) --- source4/script/gdb_run | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/script/gdb_run') diff --git a/source4/script/gdb_run b/source4/script/gdb_run index 146259d705..8ad101ed60 100755 --- a/source4/script/gdb_run +++ b/source4/script/gdb_run @@ -1,5 +1,9 @@ #!/bin/sh +ENV="$1" + +shift 1 + if test -z "$TMPDIR"; then TMPDIR="/tmp" fi @@ -13,4 +17,4 @@ EOF trap "/bin/rm -f $TMPFILE" EXIT CMD="gdb -x $TMPFILE --args $@" echo $CMD -eval "$CMD" +eval $ENV "$CMD" -- cgit