diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-05-15 18:35:04 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-05-15 18:35:04 -0400 |
| commit | 72bf56348109d87994928dee244dd97a27480c6d (patch) | |
| tree | c13a791f3cf48a62dcf7035b16d3a80eadbdf775 /lowlevelil.cpp | |
| parent | 0e0cd16a68fb4b073b33ee48c31c6d6e34bfad90 (diff) | |
Modify IL text API to allow for stack variable annotations
Diffstat (limited to 'lowlevelil.cpp')
| -rw-r--r-- | lowlevelil.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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<Ins } -bool LowLevelILFunction::GetInstructionText(Architecture* arch, size_t instr, vector<InstructionTextToken>& tokens) +bool LowLevelILFunction::GetInstructionText(Function* func, Architecture* arch, size_t instr, + vector<InstructionTextToken>& 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(); |
