From 79c529b6b6ba9156229ff718f7a2456e51e6cc27 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 16 Nov 2020 15:39:06 -0500 Subject: Function context in LinearViewHistoryEntry --- ui/linearview.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/linearview.h b/ui/linearview.h index fc91106a..50a677fd 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -57,6 +57,9 @@ class BINARYNINJAUIAPI LinearViewHistoryEntry: public HistoryEntry std::vector m_cursorPath; size_t m_cursorLineIndex; uint64_t m_cursorAddr; + PlatformRef m_platform; + uint64_t m_func; + bool m_inFunc; HighlightTokenState m_highlight; public: @@ -66,6 +69,9 @@ public: const std::vector& getCursorPath() const { return m_cursorPath; } size_t getCursorLineIndex() const { return m_cursorLineIndex; } uint64_t getCursorAddress() const { return m_cursorAddr; } + PlatformRef getPlatform() const { return m_platform; } + uint64_t getFunction() const { return m_func; } + bool inFunction() const { return m_inFunc; } const HighlightTokenState& getHighlightTokenState() const { return m_highlight; } void setTopPath(const std::vector& path) { m_topPath = path; } @@ -74,6 +80,9 @@ public: void setCursorPath(const std::vector& path) { m_cursorPath = path; } void setCursorLineIndex(size_t offset) { m_cursorLineIndex = offset; } void setCursorAddress(uint64_t addr) { m_cursorAddr = addr; } + void setPlatform(PlatformRef platform) { m_platform = platform; } + void setFunction(uint64_t f) { m_func = f; } + void setInFunction(bool inFunc) { m_inFunc = inFunc; } void setHighlightTokenState(const HighlightTokenState& state) { m_highlight = state; } }; -- cgit v1.3.1