Mercurial > hg > octave-lyh
diff 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 |
line wrap: on
line diff
--- a/run-octave.in +++ b/run-octave.in @@ -50,10 +50,16 @@ DOCFILE="$builddir/doc/interpreter/doc-cache" INFOFILE="$top_srcdir/doc/interpreter/octave.info" +## Checking for string equality below with prepended x's in order to +## handle problems with empty strings. if [ $# -gt 0 ]; then if [ "x$1" = "x-g" ]; then driver="gdb --args" shift + elif [ "x$1" = "x-gud" ]; then + ## Frontends for gdb (e.g. Emacs's GUD mode) need --annotate=3 + driver="gdb --annotate=3 --args" + shift elif [ "x$1" = "x-valgrind" ]; then driver="valgrind --tool=memcheck" shift