def getLocal(key, tName, ref): jni = getJNI(key) [tpath, offset] = art.getOffset(jni, memList) [segment_state, table_begin] = getLocals(tpath, offset) refs = art.getRefs(table_begin, segment_state) if ref in refs: return tName else: return None
def mainRefs(ref): segment_state = 0 table_begin = 0 [vmPath, offset] = getJVM(getJVMPointer(nPath, rAddr), memList) if (ref == "Globals"): [segment_state, table_begin] = getGlob(vmPath, offset) else: [segment_state, table_begin] = getWeakGlob(vmPath, offset) refs = art.getRefs(table_begin, segment_state) return refs