summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2020-11-16 15:39:06 -0500
committerJosh Ferrell <josh@vector35.com>2020-11-16 15:39:06 -0500
commit79c529b6b6ba9156229ff718f7a2456e51e6cc27 (patch)
tree3632d002b9eb43bd10322df1f9621d5403b629e6
parenta24b3303087c81135f7e2222adcbd014b988abac (diff)
Function context in LinearViewHistoryEntry
-rw-r--r--ui/linearview.h9
1 files changed, 9 insertions, 0 deletions
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<BinaryNinja::LinearViewObjectIdentifier> 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<BinaryNinja::LinearViewObjectIdentifier>& 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<BinaryNinja::LinearViewObjectIdentifier>& path) { m_topPath = path; }
@@ -74,6 +80,9 @@ public:
void setCursorPath(const std::vector<BinaryNinja::LinearViewObjectIdentifier>& 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; }
};