Tweak nomenclature for special debug opcodes to match dex-format.html

This commit is contained in:
Ben Gruver
2012-10-28 15:01:24 -07:00
parent 16f257ee8f
commit 43b6b5f200

View File

@ -215,9 +215,9 @@ public abstract class DebugInfo implements Iterable<DebugItem> {
return new ImmutableSetSourceFile(codeAddress, sourceFile);
}
default: {
int base = ((next & 0xFF) - 0x0A);
codeAddress += base / 15;
lineNumber += (base % 15) - 4;
int adjusted = next - 0x0A;
codeAddress += adjusted / 15;
lineNumber += (adjusted % 15) - 4;
return new ImmutableLineNumber(codeAddress, lineNumber);
}
}