summaryrefslogtreecommitdiffstats
path: root/dexdump
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-11-11 16:49:22 -0800
committerAndy McFadden <fadden@android.com>2010-11-12 08:01:27 -0800
commita0929372ae4996cde3aece52f98128a957166ffc (patch)
tree2d6f810ff200c5a2812a7618beb66eb06d648a06 /dexdump
parentedb7b25cb23f40d93b11e77ae5549a676bdea7b8 (diff)
downloadandroid_dalvik-a0929372ae4996cde3aece52f98128a957166ffc.tar.gz
android_dalvik-a0929372ae4996cde3aece52f98128a957166ffc.tar.bz2
android_dalvik-a0929372ae4996cde3aece52f98128a957166ffc.zip
Stop reporting negative widths.
At one point, returning a negative width for dexopt output was useful. That stopped being the case a long time ago. This also removes a bad assert that went into my previous checkin. Change-Id: I18880c2316f5499a09dc479d271ca70b2a5be259
Diffstat (limited to 'dexdump')
-rw-r--r--dexdump/DexDump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dexdump/DexDump.c b/dexdump/DexDump.c
index 4fb3878c9..26bb07bb0 100644
--- a/dexdump/DexDump.c
+++ b/dexdump/DexDump.c
@@ -1089,7 +1089,7 @@ void dumpBytecodes(DexFile* pDexFile, const DexMethod* pDexMethod)
insnWidth = 4 + ((size * width) + 1) / 2;
} else {
opCode = instr & 0xff;
- insnWidth = dexGetInstrWidthAbs(gInstrInfo.widths, opCode);
+ insnWidth = dexGetInstrWidth(gInstrInfo.widths, opCode);
if (insnWidth == 0) {
fprintf(stderr,
"GLITCH: zero-width instruction at idx=0x%04x\n", insnIdx);