Package com.android.dx.dex.file
Class DebugInfoDecoder
java.lang.Object
com.android.dx.dex.file.DebugInfoDecoder
A decoder for the dex debug info state machine format.
This code exists mostly as a reference implementation and test for
for the
DebugInfoEncoder
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode()
Decodes the debug info sequence.List
<com.android.dx.dex.file.DebugInfoDecoder.LocalEntry> Gets the decoded locals list, in ascending start-address order.List
<com.android.dx.dex.file.DebugInfoDecoder.PositionEntry> Gets the decoded positions list.static void
validateEncode
(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) Validates an encoded debug info stream against data used to encode it, throwing an exception if they do not match.
-
Method Details
-
getPositionList
Gets the decoded positions list. Valid after callingdecode
.- Returns:
- positions list in ascending address order.
-
getLocals
Gets the decoded locals list, in ascending start-address order. Valid after callingdecode
.- Returns:
- locals list in ascending address order.
-
decode
public void decode()Decodes the debug info sequence. -
validateEncode
public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic) Validates an encoded debug info stream against data used to encode it, throwing an exception if they do not match. Used to validate the encoder.- Parameters:
info
- encoded debug infofile
-non-null;
file to refer to during decodingref
-non-null;
method whose info is being decodedcode
-non-null;
original code object that was encodedisStatic
- whether the method is static
-