[kaffe] CVS kaffe (dalibor): Add support for cgdb

Kaffe CVS cvs-commits at kaffe.org
Sat Jan 10 12:54:02 PST 2004


PatchSet 4313 
Date: 2004/01/10 20:44:39
Author: dalibor
Branch: HEAD
Tag: (none) 
Log:
 Add support for cgdb

2004-01-10  Milos Negovanovic <milosn at xtra.co.nz>
        * kaffe/scripts/kaffe.in:
        Add support for cgdb(vi based curses frontend for gdb).

Members: 
	ChangeLog:1.1900->1.1901 
	kaffe/scripts/kaffe.in:1.30->1.31 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1900 kaffe/ChangeLog:1.1901
--- kaffe/ChangeLog:1.1900	Sat Jan 10 19:54:12 2004
+++ kaffe/ChangeLog	Sat Jan 10 20:44:39 2004
@@ -1,3 +1,7 @@
+2004-01-10  Milos Negovanovic <milosn at xtra.co.nz>
+	* kaffe/scripts/kaffe.in:
+	Add support for cgdb(vi based curses frontend for gdb).
+
 2004-01-10  Mark Wielaard  <mark at klomp.org>
                                                                                 
         * kaffe/kaffeh/support.c (kaffeh_findClass): Close jar file and
Index: kaffe/kaffe/scripts/kaffe.in
diff -u kaffe/kaffe/scripts/kaffe.in:1.30 kaffe/kaffe/scripts/kaffe.in:1.31
--- kaffe/kaffe/scripts/kaffe.in:1.30	Sun Jun  8 16:16:47 2003
+++ kaffe/kaffe/scripts/kaffe.in	Sat Jan 10 20:44:41 2004
@@ -96,7 +96,7 @@
     KAFFE_DEBUG_TEMPFILE=`@MKTEMP@ /tmp/kaffe.XXXXXX` || exit 1
 
     case `"$KAFFE_DEBUG" --version </dev/null 2>/dev/null` in
-    *"GDB"* | *"GNU gdb"*)
+    "GDB"* | "GNU gdb"*)
 	# start command-line gdb within the correct working directory,
 	# and set up the specified argument list
 	{
@@ -125,7 +125,17 @@
 	# start gdb within XEmacs, move into the current working
 	# directory and set up the specified argument list
 	exec "$KAFFE_DEBUG" -eval "(progn (gdb \"$KAFFE_JREBINDIR/@kaffebin_TRANSF@\") (gdb-call \"cd `pwd`\") (gdb-call \"set args $*\"))";;
-    *) echo you must set KAFFE_DEBUG to either emacs, gdb or ddd >&2;;
+    CGDB*)
+	# start gdb within cgdb, move into the current working
+	# directory and set up the specified argument list
+	{
+	    echo "shell rm -f $KAFFE_DEBUG_TEMPFILE"
+	    echo "cd `pwd`"
+	    echo "set args $*"
+	} > $KAFFE_DEBUG_TEMPFILE
+	exec "$KAFFE_DEBUG" -x $KAFFE_DEBUG_TEMPFILE $KAFFE_JREBINDIR/kaffe-bin
+	rm -f $KAFFE_DEBUG_TEMPFILE ;;
+    *) echo you must set KAFFE_DEBUG to either emacs, gdb, ddd or cgdb >&2;;
     esac
 fi
 exit 1




More information about the kaffe mailing list