mirror of
https://github.com/revanced/smali.git
synced 2025-05-12 04:14:27 +02:00
Add codeAddress field to AnalysisException
This commit is contained in:
parent
e3478f4fd4
commit
77ebf6842f
@ -34,6 +34,8 @@ package org.jf.dexlib2.analysis;
|
||||
import org.jf.util.ExceptionWithContext;
|
||||
|
||||
public class AnalysisException extends ExceptionWithContext {
|
||||
public int codeAddress;
|
||||
|
||||
public AnalysisException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
@ -202,6 +202,7 @@ public class MethodAnalyzer {
|
||||
} catch (AnalysisException ex) {
|
||||
this.analysisException = ex;
|
||||
int codeAddress = getInstructionAddress(instructionToAnalyze);
|
||||
ex.codeAddress = codeAddress;
|
||||
ex.addContext(String.format("opcode: %s", instructionToAnalyze.instruction.getOpcode().name));
|
||||
ex.addContext(String.format("code address: %d", codeAddress));
|
||||
ex.addContext(String.format("method: %s", ReferenceUtil.getReferenceString(method)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user