summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Snyder <ryan@vector35.com>2024-05-27 21:07:27 -0400
committerRyan Snyder <ryan@vector35.com>2024-06-12 12:23:15 -0400
commitf3a440248cda4d0c850cd32e3aa127ab29e0bb3e (patch)
treecf5e9d74edfbb25e6339dae5267e7675676a83b4
parent1415c07691ffb541d1aac162265e9a9b6affa713 (diff)
stackview: only show vars valid at current loc
-rw-r--r--ui/stackview.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/stackview.h b/ui/stackview.h
index 4837f9b3..433410de 100644
--- a/ui/stackview.h
+++ b/ui/stackview.h
@@ -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();
@@ -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;