Use /O for Backwards Disassembly Scrolling

This commit is contained in:
Florian Märkl 2017-12-17 10:58:25 +01:00
parent fd6a7c232d
commit 5ef204d3b8

View File

@ -397,12 +397,9 @@ void CutterCore::seekNext()
RVA CutterCore::prevOpAddr(RVA startAddr, int count) RVA CutterCore::prevOpAddr(RVA startAddr, int count)
{ {
CORE_LOCK(); CORE_LOCK();
RVA prev; bool ok;
if (!r_core_prevop_addr(core_, startAddr, count, &prev)) RVA offset = cmd("/O " + QString::number(count) + " @ " + QString::number(startAddr)).toULongLong(&ok, 16);
{ return ok ? offset : startAddr - count;
prev = startAddr - count;
}
return prev;
} }
RVA CutterCore::nextOpAddr(RVA startAddr, int count) RVA CutterCore::nextOpAddr(RVA startAddr, int count)