hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/remote/RemoteDebuggerServer.java

Print this page
rev 611 : Merge
   1 /*
   2  * Copyright 2002-2003 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  *  


  97   public long getJDoubleSize() throws RemoteException {
  98     return debugger.getJDoubleSize();
  99   }
 100 
 101   public long getJFloatSize() throws RemoteException {
 102     return debugger.getJFloatSize();
 103   }
 104 
 105   public long getJIntSize() throws RemoteException {
 106     return debugger.getJIntSize();
 107   }
 108 
 109   public long getJLongSize() throws RemoteException {
 110     return debugger.getJLongSize();
 111   }
 112 
 113   public long getJShortSize() throws RemoteException {
 114     return debugger.getJShortSize();
 115   }
 116 











 117   public boolean   areThreadsEqual(long addrOrId1, boolean isAddress1,
 118                                    long addrOrId2, boolean isAddress2) throws RemoteException {
 119     ThreadProxy t1 = getThreadProxy(addrOrId1, isAddress1);
 120     ThreadProxy t2 = getThreadProxy(addrOrId2, isAddress2);
 121     return t1.equals(t2);
 122   }
 123 
 124 
 125   public int       getThreadHashCode(long addrOrId, boolean isAddress) throws RemoteException {
 126     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 127     return t.hashCode();
 128   }
 129 
 130   public long[]    getThreadIntegerRegisterSet(long addrOrId, boolean isAddress) throws RemoteException {
 131     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 132     ThreadContext tc = t.getContext();
 133     long[] regs = new long[tc.getNumRegisters()];
 134     for (int r = 0; r < regs.length; r++) {
 135        regs[r] = tc.getRegister(r);
 136     }
   1 /*
   2  * Copyright 2002-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  *  


  97   public long getJDoubleSize() throws RemoteException {
  98     return debugger.getJDoubleSize();
  99   }
 100 
 101   public long getJFloatSize() throws RemoteException {
 102     return debugger.getJFloatSize();
 103   }
 104 
 105   public long getJIntSize() throws RemoteException {
 106     return debugger.getJIntSize();
 107   }
 108 
 109   public long getJLongSize() throws RemoteException {
 110     return debugger.getJLongSize();
 111   }
 112 
 113   public long getJShortSize() throws RemoteException {
 114     return debugger.getJShortSize();
 115   }
 116 
 117   public long getHeapBase() throws RemoteException {
 118     return debugger.getHeapBase();
 119   }
 120 
 121   public long getHeapOopSize() throws RemoteException {
 122     return debugger.getHeapOopSize();
 123   }
 124 
 125   public long getLogMinObjAlignmentInBytes() throws RemoteException {
 126     return debugger.getLogMinObjAlignmentInBytes();
 127   }
 128   public boolean   areThreadsEqual(long addrOrId1, boolean isAddress1,
 129                                    long addrOrId2, boolean isAddress2) throws RemoteException {
 130     ThreadProxy t1 = getThreadProxy(addrOrId1, isAddress1);
 131     ThreadProxy t2 = getThreadProxy(addrOrId2, isAddress2);
 132     return t1.equals(t2);
 133   }
 134 
 135 
 136   public int       getThreadHashCode(long addrOrId, boolean isAddress) throws RemoteException {
 137     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 138     return t.hashCode();
 139   }
 140 
 141   public long[]    getThreadIntegerRegisterSet(long addrOrId, boolean isAddress) throws RemoteException {
 142     ThreadProxy t = getThreadProxy(addrOrId, isAddress);
 143     ThreadContext tc = t.getContext();
 144     long[] regs = new long[tc.getNumRegisters()];
 145     for (int r = 0; r < regs.length; r++) {
 146        regs[r] = tc.getRegister(r);
 147     }