Mercurial > hg > octave-nkf
changeset 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 | 48cb431db87b |
children | 780a8b80c3e8 |
files | ChangeLog run-octave.in |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-06 Jordi GutiƩrrez Hermoso <jordigh@gmail.com> + + * 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 <jwe@octave.org> * mkoctfile.in, mkoctfile.cc.in: Substitute and use LAPACK_LIBS.
--- 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