comparison run-octave.in @ 11452:e1a5bf3ea1d9

Add a GUD mode option to run-octave.in
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Thu, 06 Jan 2011 03:31:27 -0500
parents 0d4613a736e9
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
11451:48cb431db87b 11452:e1a5bf3ea1d9
48 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path" 48 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path"
49 IMAGEPATH="$top_srcdir/scripts/image" 49 IMAGEPATH="$top_srcdir/scripts/image"
50 DOCFILE="$builddir/doc/interpreter/doc-cache" 50 DOCFILE="$builddir/doc/interpreter/doc-cache"
51 INFOFILE="$top_srcdir/doc/interpreter/octave.info" 51 INFOFILE="$top_srcdir/doc/interpreter/octave.info"
52 52
53 ## Checking for string equality below with prepended x's in order to
54 ## handle problems with empty strings.
53 if [ $# -gt 0 ]; then 55 if [ $# -gt 0 ]; then
54 if [ "x$1" = "x-g" ]; then 56 if [ "x$1" = "x-g" ]; then
55 driver="gdb --args" 57 driver="gdb --args"
58 shift
59 elif [ "x$1" = "x-gud" ]; then
60 ## Frontends for gdb (e.g. Emacs's GUD mode) need --annotate=3
61 driver="gdb --annotate=3 --args"
56 shift 62 shift
57 elif [ "x$1" = "x-valgrind" ]; then 63 elif [ "x$1" = "x-valgrind" ]; then
58 driver="valgrind --tool=memcheck" 64 driver="valgrind --tool=memcheck"
59 shift 65 shift
60 elif [ "x$1" = "x-strace" ]; then 66 elif [ "x$1" = "x-strace" ]; then