From 72bf56348109d87994928dee244dd97a27480c6d Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Sun, 15 May 2016 18:35:04 -0400 Subject: Modify IL text API to allow for stack variable annotations --- lowlevelil.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lowlevelil.cpp') diff --git a/lowlevelil.cpp b/lowlevelil.cpp index 81104419..385c55c5 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -581,11 +581,13 @@ bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector& tokens) +bool LowLevelILFunction::GetInstructionText(Function* func, Architecture* arch, size_t instr, + vector& tokens) { size_t count; BNInstructionTextToken* list; - if (!BNGetLowLevelILInstructionText(m_object, arch->GetObject(), instr, &list, &count)) + if (!BNGetLowLevelILInstructionText(m_object, func ? func->GetObject() : nullptr, arch->GetObject(), + instr, &list, &count)) return false; tokens.clear(); -- cgit v1.3.1