comparison agent/test/jdi/sasanity.sh @ 6782:5a98bf7d847b

6879063: SA should use hsdis for disassembly Summary: We should in SA to use hsdis for it like the JVM does to replace the current java based disassembler. Reviewed-by: twisti, jrose, sla Contributed-by: yumin.qi@oracle.com
author minqi
date Mon, 24 Sep 2012 12:44:00 -0700
parents e6b1331a51d2
children
comparison
equal deleted inserted replaced
6780:8440414b0fd8 6782:5a98bf7d847b
1 #!/bin/ksh 1 #!/bin/ksh
2 # 2 #
3 # Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 3 # Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # 5 #
6 # This code is free software; you can redistribute it and/or modify it 6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as 7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
44 44
45 jdk=$1 45 jdk=$1
46 shift 46 shift
47 OS=`uname` 47 OS=`uname`
48 48
49 if [ "$OS" != "Linux" ]; then
50 OPTIONS="-Dsun.jvm.hotspot.debugger.useProcDebugger"
51 fi
52
53 javacp=$jdk/lib/sa-jdi.jar:./workdir 49 javacp=$jdk/lib/sa-jdi.jar:./workdir
54 50
55 mkdir -p workdir 51 mkdir -p workdir
56 if [ SASanityChecker.java -nt ./workdir/SASanityChecker.class ] ; then 52 if [ SASanityChecker.java -nt ./workdir/SASanityChecker.class ] ; then
57 $jdk/bin/javac -d ./workdir -classpath $javacp SASanityChecker.java 53 $jdk/bin/javac -d ./workdir -classpath $javacp SASanityChecker.java