util: LLVM disassembler bugfix
Start/End is both inclusive; otherwise we may miss a trailing single-byte instruction. Change-Id: Ifb25593886864f7f92b08f13875a12e0a5a0d345
This commit is contained in:
@ -95,7 +95,7 @@ void LLVMDisassembler::disassemble()
|
||||
// This symbol has the same address as the next symbol. Skip it.
|
||||
continue;
|
||||
|
||||
for (Index = Start; Index < End; Index += Size) {
|
||||
for (Index = Start; Index <= End; Index += Size) {
|
||||
MCInst Inst;
|
||||
|
||||
if (disas->getInstruction(Inst, Size, memoryObject, Index,
|
||||
|
||||
Reference in New Issue
Block a user