annotate C-- calls that do not return
[ghc-hetmet.git] / utils / pvm / debugger2
1 #!/bin/csh -f
2 #
3 #       debugger2.csh
4 #
5 #       this script is invoked in an xterm by the generic debugger script.
6 #       it starts the debugger and waits when it exits to prevent the
7 #       window from closing.
8 #
9 #       it expects the pvmd to set envar PVM_ARCH.
10 #
11 #       06 Apr 1993  Manchek
12 #
13
14 set noglob
15
16 # scratch file for debugger commands
17
18 set TEMPCMD=/tmp/debugger2.$$
19
20 # default debugger and flags
21
22 set DBCMD="gdb"
23 set DBFF="-q -x $TEMPCMD"
24
25 #
26 # try to pick the debugger by arch name
27 #
28
29 #
30 # run the debugger
31 #
32
33 echo run $argv[2-] > $TEMPCMD
34 $DBCMD $DBFF $argv[1]
35
36 #$DBCMD $argv[1]
37
38 #rm -f $TEMPCMD
39
40 #
41 # wait to go away
42 #
43
44 #reset
45 #sleep 1
46 rm -f $TEMPCMD
47 exit 0
48