1 package gov.nasa.jpf.jvm; 20 21 import java.util.HashMap ; 22 23 24 27 public class JPF_java_lang_Throwable { 28 static HashMap stackTraces; 29 30 33 public static int getStackTrace (MJIEnv env, int objref) { 34 return env.getThreadInfo().getStackTrace(objref); 35 } 36 37 public static int fillInStackTrace (MJIEnv env, int objref) { 38 int traceRef = getStackTrace(env, objref); 39 DynamicArea da = env.getDynamicArea(); 40 ElementInfo ei = da.get(objref); 41 42 env.setReferenceField(objref, "stackTrace", traceRef); 43 return MJIEnv.NULL; 44 } 45 46 public static void printStackTrace (MJIEnv env, int objRef) { 48 49 env.getThreadInfo().printStackTrace(objRef); 50 } 51 } 52 | Popular Tags |