Add support to smali for a .source directive with no source file

This commit is contained in:
Ben Gruver
2013-04-18 00:27:16 -07:00
parent 3e4e5ec7a4
commit b6435e7a47
4 changed files with 4 additions and 5 deletions

View File

@ -269,7 +269,7 @@ public class DebugInfoPool {
public void emitSetSourceFile(@Nonnull SetSourceFile setSourceFile) throws IOException {
emitAdvancePC(setSourceFile.getCodeAddress());
writer.write(9);
writer.write(dexFile.stringPool.getIndexNullable(setSourceFile.getSourceFile()));
writer.writeUleb128(dexFile.stringPool.getIndexNullable(setSourceFile.getSourceFile()) + 1);
}
private static final int LINE_BASE = -4;