agent/src/share/classes/sun/jvm/hotspot/DebugServer.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7088955 Sdiff agent/src/share/classes/sun/jvm/hotspot

agent/src/share/classes/sun/jvm/hotspot/DebugServer.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package sun.jvm.hotspot;
  26 
  27 import sun.jvm.hotspot.debugger.*;
  28 import sun.jvm.hotspot.debugger.dbx.*;
  29 import sun.jvm.hotspot.runtime.*;
  30 import sun.jvm.hotspot.oops.*;
  31 
  32 public class DebugServer {
  33   private void usage() {
  34     System.out.println("usage: java " + getClass().getName() + " <pid> [server id]");
  35     System.out.println("   or: java " + getClass().getName() + " <executable> <core> [server id]");
  36     System.out.println("\"pid\" must be the process ID of a HotSpot process.");
  37     System.out.println("If reading a core file, \"executable\" must (currently) be the");
  38     System.out.println("full path name to the precise java executable which generated");
  39     System.out.println("the core file (not, on Solaris, the \"java\" wrapper script in");
  40     System.out.println("the \"bin\" subdirectory of the JDK.)");
  41     System.out.println("The \"server id\" is a unique name for a specific remote debuggee.");
  42     System.exit(1);
  43   }
  44 
  45   public static void main(String[] args) {
  46     new DebugServer().run(args);
  47   }
  48 


   1 /*
   2  * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 package sun.jvm.hotspot;
  26 
  27 import sun.jvm.hotspot.debugger.*;

  28 import sun.jvm.hotspot.runtime.*;
  29 import sun.jvm.hotspot.oops.*;
  30 
  31 public class DebugServer {
  32   private void usage() {
  33     System.out.println("usage: java " + getClass().getName() + " <pid> [server id]");
  34     System.out.println("   or: java " + getClass().getName() + " <executable> <core> [server id]");
  35     System.out.println("\"pid\" must be the process ID of a HotSpot process.");
  36     System.out.println("If reading a core file, \"executable\" must (currently) be the");
  37     System.out.println("full path name to the precise java executable which generated");
  38     System.out.println("the core file (not, on Solaris, the \"java\" wrapper script in");
  39     System.out.println("the \"bin\" subdirectory of the JDK.)");
  40     System.out.println("The \"server id\" is a unique name for a specific remote debuggee.");
  41     System.exit(1);
  42   }
  43 
  44   public static void main(String[] args) {
  45     new DebugServer().run(args);
  46   }
  47 


agent/src/share/classes/sun/jvm/hotspot/DebugServer.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File