mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-30 08:45:25 +00:00
Use /O for Backwards Disassembly Scrolling
This commit is contained in:
parent
fd6a7c232d
commit
5ef204d3b8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user