mirror of
https://github.com/revanced/smali.git
synced 2025-05-15 05:37:05 +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;
|
import org.jf.util.ExceptionWithContext;
|
||||||
|
|
||||||
public class AnalysisException extends ExceptionWithContext {
|
public class AnalysisException extends ExceptionWithContext {
|
||||||
|
public int codeAddress;
|
||||||
|
|
||||||
public AnalysisException(Throwable cause) {
|
public AnalysisException(Throwable cause) {
|
||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
@ -202,6 +202,7 @@ public class MethodAnalyzer {
|
|||||||
} catch (AnalysisException ex) {
|
} catch (AnalysisException ex) {
|
||||||
this.analysisException = ex;
|
this.analysisException = ex;
|
||||||
int codeAddress = getInstructionAddress(instructionToAnalyze);
|
int codeAddress = getInstructionAddress(instructionToAnalyze);
|
||||||
|
ex.codeAddress = codeAddress;
|
||||||
ex.addContext(String.format("opcode: %s", instructionToAnalyze.instruction.getOpcode().name));
|
ex.addContext(String.format("opcode: %s", instructionToAnalyze.instruction.getOpcode().name));
|
||||||
ex.addContext(String.format("code address: %d", codeAddress));
|
ex.addContext(String.format("code address: %d", codeAddress));
|
||||||
ex.addContext(String.format("method: %s", ReferenceUtil.getReferenceString(method)));
|
ex.addContext(String.format("method: %s", ReferenceUtil.getReferenceString(method)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user