95 # it is a pid
96 args="$args $1"
97 else
98 # It is a core.
99 # We have to pass the name of the program that produced the
100 # core, and the core file itself.
101 args="$jdk/bin/java $1"
102 fi
103 ;;
104 esac
105 shift
106 done
107
108 if [ -z "$jdk" ] ; then
109 error "--Error: runsa.sh: Must specify -jdk <jdk-pathname>."
110 error " Do runsa.sh -help for more info"
111 exit 1
112 fi
113
114 set -x
115 #setenv USE_LIBPROC_DEBUGGER "-Dsun.jvm.hotspot.debugger.useProcDebugger -Djava.library.path=$saprocdir"
116
117 # If jjh makes this, then the classes are in .../build/agent.
118 # if someone else does, they are in .
119 classesDir=../../../../../../build/agent
120 if [ ! -r $classesDir ] ; then
121 classesDir=.
122 if [ ! -r $classesDir ] ; then
123 echo "-- Error: runsa.sh can't find the SA classes"
124 exit 1
125 fi
126 fi
127 #javacp="/net/mmm/export/mmm/ws/sabaseline/build/solaris/solaris_sparc_compiler1/generated/sa-jdi.jar:$classesDir:$jdk/lib/tools.jar:$jdk/classes:./workdir"
128
129 javacp="$jdk/lib/sa-jdi.jar:$classesDir:$jdk/lib/tools.jar:$jdk/classes:./workdir"
130
131
132 extraArgs="-showversion $javaArgs"
133 #extraArgs="-DdbxSvcAgentDSOPathName=/net/mmm/export/mmm/ws/m/b2/sa/src/os/solaris/agent/64bit/libsvc_agent_dbx.so $extraArgs"
134 #extraArgs="-DdbxSvcAgentDSOPathName=/net/jano.eng/export/disk05/hotspot/sa/solaris/sparcv9/lib/libsvc_agent_dbx.so $extraArgs"
135
|
95 # it is a pid
96 args="$args $1"
97 else
98 # It is a core.
99 # We have to pass the name of the program that produced the
100 # core, and the core file itself.
101 args="$jdk/bin/java $1"
102 fi
103 ;;
104 esac
105 shift
106 done
107
108 if [ -z "$jdk" ] ; then
109 error "--Error: runsa.sh: Must specify -jdk <jdk-pathname>."
110 error " Do runsa.sh -help for more info"
111 exit 1
112 fi
113
114 set -x
115
116 # If jjh makes this, then the classes are in .../build/agent.
117 # if someone else does, they are in .
118 classesDir=../../../../../../build/agent
119 if [ ! -r $classesDir ] ; then
120 classesDir=.
121 if [ ! -r $classesDir ] ; then
122 echo "-- Error: runsa.sh can't find the SA classes"
123 exit 1
124 fi
125 fi
126 #javacp="/net/mmm/export/mmm/ws/sabaseline/build/solaris/solaris_sparc_compiler1/generated/sa-jdi.jar:$classesDir:$jdk/lib/tools.jar:$jdk/classes:./workdir"
127
128 javacp="$jdk/lib/sa-jdi.jar:$classesDir:$jdk/lib/tools.jar:$jdk/classes:./workdir"
129
130
131 extraArgs="-showversion $javaArgs"
132 #extraArgs="-DdbxSvcAgentDSOPathName=/net/mmm/export/mmm/ws/m/b2/sa/src/os/solaris/agent/64bit/libsvc_agent_dbx.so $extraArgs"
133 #extraArgs="-DdbxSvcAgentDSOPathName=/net/jano.eng/export/disk05/hotspot/sa/solaris/sparcv9/lib/libsvc_agent_dbx.so $extraArgs"
134
|