# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1294302687 18000 # Node ID e1a5bf3ea1d97f6b9552c13931334a2c3cf9a447 # Parent 48cb431db87bf3aecf2570c8da3a0d0b72473860 Add a GUD mode option to run-octave.in diff -r 48cb431db87b -r e1a5bf3ea1d9 ChangeLog --- a/ChangeLog Thu Jan 06 03:20:42 2011 -0500 +++ b/ChangeLog Thu Jan 06 03:31:27 2011 -0500 @@ -1,3 +1,8 @@ +2011-01-06 Jordi GutiƩrrez Hermoso + + * run-octave.in: Add a -gud option so that gdb can be called from + Emacs's GUD mode and similar. + 2011-01-06 John W. Eaton * mkoctfile.in, mkoctfile.cc.in: Substitute and use LAPACK_LIBS. diff -r 48cb431db87b -r e1a5bf3ea1d9 run-octave.in --- a/run-octave.in Thu Jan 06 03:20:42 2011 -0500 +++ b/run-octave.in Thu Jan 06 03:31:27 2011 -0500 @@ -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