annotate src/jdk.hotspot.agent/scripts/start-debug-server.bat @ 56674:662d9e1e2a60

8232239: ZGC: Inline ZCPU::count() and ZCPU:id() Reviewed-by: tschatzl
author pliden
date Mon, 21 Oct 2019 09:58:32 +0200
parents ce4b5303a813
rev   line source
duke@1 1 @echo off
duke@1 2
duke@1 3 REM
trims@5547 4 REM Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
duke@1 6 REM
duke@1 7 REM This code is free software; you can redistribute it and/or modify it
duke@1 8 REM under the terms of the GNU General Public License version 2 only, as
duke@1 9 REM published by the Free Software Foundation.
duke@1 10 REM
duke@1 11 REM This code is distributed in the hope that it will be useful, but WITHOUT
duke@1 12 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1 13 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1 14 REM version 2 for more details (a copy is included in the LICENSE file that
duke@1 15 REM accompanied this code).
duke@1 16 REM
duke@1 17 REM You should have received a copy of the GNU General Public License version
duke@1 18 REM 2 along with this work; if not, write to the Free Software Foundation,
duke@1 19 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1 20 REM
trims@5547 21 REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
trims@5547 22 REM or visit if you need additional information or have any
trims@5547 23 REM questions.
duke@1 24 REM
duke@1 25 REM
duke@1 26
duke@1 27 if "%1" == "-help" goto usage
duke@1 28
duke@1 29 :JAVA_HOME
duke@1 30 if not exist %JAVA_HOME%\bin\java.exe goto BADJAVAHOME
duke@1 31 if not exist %JAVA_HOME\lib\sa-jdi.jar goto BADJAVAHOME
duke@1 32
duke@1 33 start %JAVA_HOME%\bin\java -classpath %JAVA_HOME%\lib\sa-jdi.jar sun.jvm.hotspot.jdi.SADebugServer %1 %2
duke@1 34 goto end
duke@1 35
duke@1 36 :BADJAVAHOME
duke@1 37 echo JAVA_HOME does not point to a working J2SE 1.5 installation.
duke@1 38
duke@1 39 :usage
duke@1 40 echo Usage: start-debug-server [pid]
duke@1 41 echo $0 <java executable> [Dr Watson dump file]
duke@1 42 echo Start the JDI debug server on [pid] or [Dr Watson dump file]
duke@1 43 echo so that it can be debugged from a remote machine.
duke@1 44 echo JAVA_HOME must contain the pathname of a J2SE 1.5
duke@1 45 echo installation.
duke@1 46
duke@1 47 :end