Fix the partial disassembly of a broken three byte instruction at the end of a function.
[deliverable/binutils-gdb.git] / opcodes / i386-dis.c
index 055b38f98639a8a2ad1e8a239d2c1aad844c6d41..ae18cf2dee03f31883bf064c56d6e5a4465cb195 100644 (file)
@@ -13438,8 +13438,10 @@ print_insn (bfd_vma pc, disassemble_info *info)
   if (*codep == 0x0f)
     {
       unsigned char threebyte;
-      FETCH_DATA (info, codep + 2);
-      threebyte = *++codep;
+
+      codep++;
+      FETCH_DATA (info, codep + 1);
+      threebyte = *codep;
       dp = &dis386_twobyte[threebyte];
       need_modrm = twobyte_has_modrm[*codep];
       codep++;
This page took 0.029364 seconds and 4 git commands to generate.