projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
runlttv: improvements
[lttv.git]
/
runlttv
diff --git
a/runlttv
b/runlttv
index fd774d3042c19c624f665f6798eb8f0828914c0d..983b50cb177227217d740091f643fae42e5c6284 100755
(executable)
--- 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.
# 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
#
# The .runlttvrc file can be used to control its behavior.
# - by setting the TRACEFILE variable, a trace can be automatically loaded
@@
-30,9
+33,11
@@
ARGS=\
"-L lttv/modules/gui/interrupts/.libs -m interrupts "\
"-L lttv/modules/gui/histogram/.libs -m guihistogram"
"-L lttv/modules/gui/interrupts/.libs -m interrupts "\
"-L lttv/modules/gui/histogram/.libs -m guihistogram"
-LTTV_EXEC="lttv/lttv/.libs/lttv.real"
-
-if [ ! -e "$LTTV_EXEC" ]; then
+if [ -e "lttv/lttv/.libs/lttv.real" ]; then
+ LTTV_EXEC="lttv/lttv/.libs/lttv.real"
+elif [ -e "lttv/lttv/lttv.real" ]; then
+ LTTV_EXEC="lttv/lttv/lttv.real"
+else
echo "error: LTTV should be compiled before running this script." >/dev/stderr
exit 1
fi
echo "error: LTTV should be compiled before running this script." >/dev/stderr
exit 1
fi
@@
-41,14
+46,16
@@
for a in $@; do
eval $(echo $a)"=1"
done
eval $(echo $a)"=1"
done
+if [ -n "$TF" ]; then
+ TRACEFILE="-t $TF"
+fi
+
if [ -e "$RCFILE" ]; then
source "$RCFILE";
fi
ARGS="$ARGS $LTTV_ARGS"
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
if [ -n "$dbg" ]; then
LD_LIBRARY_PATH=ltt/.libs gdb --args $LTTV_EXEC $ARGS $TRACEFILE
elif [ -n "$valgrind" ]; then
This page took
0.023638 seconds
and
4
git commands to generate.