Skip to content

Commit

Permalink
stackview: only show vars valid at current loc
Browse files Browse the repository at this point in the history
  • Loading branch information
rssor committed Jun 12, 2024
1 parent 1415c07 commit f3a4402
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/stackview.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View
size_t m_lineIndex;
size_t m_tokenIndex;
bool m_needFirstFocus;
bool m_positionAware;

//! Bind and register all stack view actions.
void setupActions();
Expand Down Expand Up @@ -283,6 +284,9 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View
//! Set the base offset to a constant (or clear on nullopt)
void setBaseOffset(FunctionRef func, std::optional<int64_t> offset);

//! Set whether we show only the vars relevant for the current address
void setPositionAware(bool positionAware);

//! Override the default event handler so we can have nice tooltips.
bool event(QEvent* event) override;

Expand Down

0 comments on commit f3a4402

Please sign in to comment.