From Kurt.Hornik@ci.tuwien.ac.at  Mon Jul 28 14:23:47 1997
From: Kurt.Hornik@ci.tuwien.ac.at (Kurt Hornik)
Date: Mon, 28 Jul 1997 15:23:47 +0200
Subject: R-alpha: R 0.50.a1 && gdb support
Message-ID: <199707281323.PAA18636@aragorn.ci.tuwien.ac.at>

Can we have gdb support?  (I don't use xxgdb.)

Perhaps in the wrapper one could add something like

*************************************************************
if [ "$1" = "-gdb" ]
then
	shift
	DEBUGGER=gdb
fi
*************************************************************

and at the end have

*************************************************************
if [ "$DEBUGGER" = "gdb" ]
then
    exec gdb $RHOME/bin/R.binary $*
else    
    exec $DEBUGGER $RHOME/bin/R.binary -v 4 $*
fi    
*************************************************************

Or is there a way to pass command line options for the program through
gdb?

Thanks,
-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: R 0.50.a1 && gdb support
Kurt Hornik