< prev index next >

agent/src/share/classes/sun/jvm/hotspot/debugger/sparc/SPARCThreadContext.java

Print this page


   1 /*
   2  * Copyright (c) 2000, 2012, 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.debugger.sparc;
  26 


  27 import sun.jvm.hotspot.debugger.*;
  28 import sun.jvm.hotspot.debugger.cdbg.*;
  29 
  30 /** Currently provides just the minimal information necessary to get
  31     stack traces working. FIXME: currently hardwired for v9 -- will
  32     have to factor out v8/v9 specific code. FIXME: may want to try to
  33     share code between this class and asm/sparc. */
  34 
  35 public abstract class SPARCThreadContext implements ThreadContext {
  36   // Taken from /usr/include/sys/procfs_isa.h




  37   public static final int R_G0 = 0;
  38   public static final int R_G1 = 1;
  39   public static final int R_G2 = 2;
  40   public static final int R_G3 = 3;
  41   public static final int R_G4 = 4;
  42   public static final int R_G5 = 5;
  43   public static final int R_G6 = 6;
  44   public static final int R_G7 = 7;
  45   public static final int R_O0 = 8;
  46   public static final int R_O1 = 9;
  47   public static final int R_O2 = 10;
  48   public static final int R_O3 = 11;
  49   public static final int R_O4 = 12;
  50   public static final int R_O5 = 13;
  51   public static final int R_O6 = 14;
  52   public static final int R_O7 = 15;
  53   public static final int R_L0 = 16;
  54   public static final int R_L1 = 17;
  55   public static final int R_L2 = 18;
  56   public static final int R_L3 = 19;


   1 /*
   2  * Copyright (c) 2000, 2015, 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.debugger.sparc;
  26 
  27 import java.lang.annotation.Native;
  28 
  29 import sun.jvm.hotspot.debugger.*;
  30 import sun.jvm.hotspot.debugger.cdbg.*;
  31 
  32 /** Currently provides just the minimal information necessary to get
  33     stack traces working. FIXME: currently hardwired for v9 -- will
  34     have to factor out v8/v9 specific code. FIXME: may want to try to
  35     share code between this class and asm/sparc. */
  36 
  37 public abstract class SPARCThreadContext implements ThreadContext {
  38   // Taken from /usr/include/sys/procfs_isa.h
  39 
  40   // One instance of the Native annotation is enough to trigger header generation
  41   // for this file.
  42   @Native
  43   public static final int R_G0 = 0;
  44   public static final int R_G1 = 1;
  45   public static final int R_G2 = 2;
  46   public static final int R_G3 = 3;
  47   public static final int R_G4 = 4;
  48   public static final int R_G5 = 5;
  49   public static final int R_G6 = 6;
  50   public static final int R_G7 = 7;
  51   public static final int R_O0 = 8;
  52   public static final int R_O1 = 9;
  53   public static final int R_O2 = 10;
  54   public static final int R_O3 = 11;
  55   public static final int R_O4 = 12;
  56   public static final int R_O5 = 13;
  57   public static final int R_O6 = 14;
  58   public static final int R_O7 = 15;
  59   public static final int R_L0 = 16;
  60   public static final int R_L1 = 17;
  61   public static final int R_L2 = 18;
  62   public static final int R_L3 = 19;


< prev index next >