mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-12 15:45:55 +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)
|
||||
{
|
||||
CORE_LOCK();
|
||||
RVA prev;
|
||||
if (!r_core_prevop_addr(core_, startAddr, count, &prev))
|
||||
{
|
||||
prev = startAddr - count;
|
||||
}
|
||||
return prev;
|
||||
bool ok;
|
||||
RVA offset = cmd("/O " + QString::number(count) + " @ " + QString::number(startAddr)).toULongLong(&ok, 16);
|
||||
return ok ? offset : startAddr - count;
|
||||
}
|
||||
|
||||
RVA CutterCore::nextOpAddr(RVA startAddr, int count)
|
||||
|
Loading…
Reference in New Issue
Block a user