hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/Debugger.java

Print this page
rev 611 : Merge
   1 /*
   2  * Copyright 2000-2002 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *  


 101   public String consoleExecuteCommand(String cmd) throws DebuggerException;
 102 
 103   /** If the underlying debugger has a console, this returns the
 104       debugger-specific prompt which should be displayed. */
 105   public String getConsolePrompt() throws DebuggerException;
 106 
 107   /** If this platform supports C/C++ debugging via the CDebugger
 108       interface, returns a CDebugger object; otherwise returns
 109       null. */
 110   public CDebugger getCDebugger() throws DebuggerException;
 111 
 112   /** the following methods are intended only for RemoteDebuggerClient */
 113   public long getJBooleanSize();
 114   public long getJByteSize();
 115   public long getJCharSize();
 116   public long getJDoubleSize();
 117   public long getJFloatSize();
 118   public long getJIntSize();
 119   public long getJLongSize();
 120   public long getJShortSize();



 121 
 122   public ReadResult readBytesFromProcess(long address, long numBytes)
 123     throws DebuggerException;
 124 
 125   public void writeBytesToProcess(long address, long numBytes, byte[] data)
 126     throws UnmappedAddressException, DebuggerException;
 127 }
   1 /*
   2  * Copyright 2000-2008 Sun Microsystems, Inc.  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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  20  * CA 95054 USA or visit www.sun.com if you need additional information or
  21  * have any questions.
  22  *  


 101   public String consoleExecuteCommand(String cmd) throws DebuggerException;
 102 
 103   /** If the underlying debugger has a console, this returns the
 104       debugger-specific prompt which should be displayed. */
 105   public String getConsolePrompt() throws DebuggerException;
 106 
 107   /** If this platform supports C/C++ debugging via the CDebugger
 108       interface, returns a CDebugger object; otherwise returns
 109       null. */
 110   public CDebugger getCDebugger() throws DebuggerException;
 111 
 112   /** the following methods are intended only for RemoteDebuggerClient */
 113   public long getJBooleanSize();
 114   public long getJByteSize();
 115   public long getJCharSize();
 116   public long getJDoubleSize();
 117   public long getJFloatSize();
 118   public long getJIntSize();
 119   public long getJLongSize();
 120   public long getJShortSize();
 121   public long getHeapBase();
 122   public long getHeapOopSize();
 123   public long getLogMinObjAlignmentInBytes();
 124 
 125   public ReadResult readBytesFromProcess(long address, long numBytes)
 126     throws DebuggerException;
 127 
 128   public void writeBytesToProcess(long address, long numBytes, byte[] data)
 129     throws UnmappedAddressException, DebuggerException;
 130 }