Skip to content

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

1 message · Kurt Hornik

#
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-