diff options
author | Dan Bornstein <danfuzz@android.com> | 2010-11-17 14:16:56 -0800 |
---|---|---|
committer | Dan Bornstein <danfuzz@android.com> | 2010-11-17 14:27:17 -0800 |
commit | 543223954993a19fa96670692bc7aa55d851966b (patch) | |
tree | 3c0a7c45c1e2976013ec324bfe7ad3a1a6d8b50f /dexdump | |
parent | 8424432a87c784547e4510bca538eaedc312e40d (diff) | |
download | android_dalvik-543223954993a19fa96670692bc7aa55d851966b.tar.gz android_dalvik-543223954993a19fa96670692bc7aa55d851966b.tar.bz2 android_dalvik-543223954993a19fa96670692bc7aa55d851966b.zip |
Use the generated opcode info tables.
This is, once again, an intermediate step. Soon, I'm going to try to
remove need to keep and pass copies of the opcode info pointers all
over the place.
Change-Id: Ic6af849310b22ca604a7f2d18c78ff8d112459b4
Diffstat (limited to 'dexdump')
-rw-r--r-- | dexdump/DexDump.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/dexdump/DexDump.c b/dexdump/DexDump.c index 594930376..556dbc22a 100644 --- a/dexdump/DexDump.c +++ b/dexdump/DexDump.c @@ -1097,7 +1097,7 @@ void dumpBytecodes(DexFile* pDexFile, const DexMethod* pDexMethod) } } - dexDecodeInstruction(&gInstrInfo, insns, &decInsn); + dexDecodeInstruction(insns, &decInsn); dumpInstruction(pDexFile, pCode, insnIdx, insnWidth, &decInsn); insns += insnWidth; @@ -1891,10 +1891,7 @@ int main(int argc, char* const argv[]) } /* initialize some VM tables */ - if (dexCreateInstructionInfoTables(&gInstrInfo)) { - fprintf(stderr, "Failed to construct instruction tables\n"); - return 1; - } + dexGetInstructionInfoTables(&gInstrInfo); if (wantUsage) { usage(); @@ -1906,7 +1903,5 @@ int main(int argc, char* const argv[]) result |= process(argv[optind++]); } - dexFreeInstructionInfoTables(&gInstrInfo); - return (result != 0); } |