libs-steptalk/Testing/gdbstexec
Stefan Urbanek f375c3e0f3 Documented gdbstexec
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@16858 72102866-910b-0410-8b05-ffd578937521
2003-06-02 15:55:29 +00:00

19 lines
407 B
Tcsh
Executable file

#!/bin/csh
#
# gdbstexec - GDB wrapper for stexec
#
# Put this file to be reachable from your PATH
#
# Use like stexec:
# gdbstexec script_name ...
# This will run stexec in gdb and run it with script script_name. After
# finishing, backtrace is displayed
#
set temp = `tempfile -p stexec`
echo set args $*:q > $temp
echo run >> $temp
echo bt >> $temp
gdb --command=$temp `which stexec`
rm $temp