From 58f53b56557577b64911d0e7a2bba3fbb521d71d Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 11 Aug 2009 22:37:22 -0400 Subject: [PATCH] runlttv: improvements --- runlttv | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/runlttv b/runlttv index 31728d65..983b50cb 100755 --- a/runlttv +++ b/runlttv @@ -4,6 +4,9 @@ # This script runs LTTV in place in the compile directory without need for # installing it with make install. +# +# Run with the TF environment variable set to a trace directory to open it. +# ex: TF=/my/trace ./runlttv # # The .runlttvrc file can be used to control its behavior. # - by setting the TRACEFILE variable, a trace can be automatically loaded @@ -43,14 +46,16 @@ for a in $@; do eval $(echo $a)"=1" done +if [ -n "$TF" ]; then + TRACEFILE="-t $TF" +fi + if [ -e "$RCFILE" ]; then source "$RCFILE"; fi ARGS="$ARGS $LTTV_ARGS" -echo $dbg - if [ -n "$dbg" ]; then LD_LIBRARY_PATH=ltt/.libs gdb --args $LTTV_EXEC $ARGS $TRACEFILE elif [ -n "$valgrind" ]; then -- 2.34.1