summaryrefslogtreecommitdiff
path: root/ghc/utils/pvm/debugger2
blob: 7cdf8b9a1aac786d85f52083f5e522692e5d24cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/csh -f
#
#	debugger2.csh
#
#	this script is invoked in an xterm by the generic debugger script.
#	it starts the debugger and waits when it exits to prevent the
#	window from closing.
#
#	it expects the pvmd to set envar PVM_ARCH.
#
#	06 Apr 1993  Manchek
#

set noglob

# scratch file for debugger commands

set TEMPCMD=/tmp/debugger2.$$

# default debugger and flags

set DBCMD="gdb"
set DBFF="-q -x $TEMPCMD"

#
# try to pick the debugger by arch name
#

#
# run the debugger
#

echo run $argv[2-] > $TEMPCMD
$DBCMD $DBFF $argv[1]

#$DBCMD $argv[1]

#rm -f $TEMPCMD

#
# wait to go away
#

#reset
#sleep 1
rm -f $TEMPCMD
exit 0