Skip to content

Commit

Permalink
Avoid excessive function updates when stepping through code
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Mar 22, 2024
1 parent 679a7fc commit 58f6f5b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/processview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,16 @@ size_t DebugProcessView::PerformWrite(uint64_t offset, const void* data, size_t
void DebugProcessView::MarkDirty()
{
// This hack will let the views (linear/graph) update its display
uint64_t end = m_aggressiveAnalysisUpdate ? GetLength() : 1;
BinaryView::NotifyDataWritten(0, end);
if (m_aggressiveAnalysisUpdate)
{
BinaryView::NotifyDataWritten(0, GetLength());
}
else
{
// This ensures or the BinaryDataListener, e.g, the linear view, refreshes its display. But it avoids any
// functions get marked as update required
BinaryView::NotifyDataWritten(0xdeadbeefdeadbeef, 0);
}
}


Expand Down

0 comments on commit 58f6f5b

Please sign in to comment.