GUI: don't highlight an invalid memory address CIP
This commit is contained in:
parent
b9d7c865ec
commit
1d9585e5f4
|
|
@ -176,7 +176,7 @@ QString Disassembly::paintContent(QPainter* painter, dsint rowBase, int rowOffse
|
|||
QString addrText = getAddrText(cur_addr, label);
|
||||
BPXTYPE bpxtype = DbgGetBpxTypeAt(cur_addr);
|
||||
bool isbookmark = DbgGetBookmarkAt(cur_addr);
|
||||
if(mInstBuffer.at(rowOffset).rva == mCipRva && !mIsRunning) //cip + not running
|
||||
if(mInstBuffer.at(rowOffset).rva == mCipRva && !mIsRunning && DbgMemFindBaseAddr(DbgValFromString("cip"), nullptr)) //cip + not running + valid cip
|
||||
{
|
||||
painter->fillRect(QRect(x, y, w, h), QBrush(mCipBackgroundColor));
|
||||
if(!isbookmark) //no bookmark
|
||||
|
|
|
|||
Loading…
Reference in New Issue