diff options
| author | Xusheng <xusheng@vector35.com> | 2021-02-16 18:34:59 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-04-16 13:40:55 +0800 |
| commit | b6feff3f3d3bdcb4bea983a085f4ed794e186940 (patch) | |
| tree | b41a84f4dac229f21609932c7b5ec0d29507fa4f /highlevelil.cpp | |
| parent | e8b9e5e4520522bcfcd5b2ed2b343892f171d750 (diff) | |
add a DisassemblySettings* parameter to MLIL/HLIL functions that retrieve instruction/expr text
Diffstat (limited to 'highlevelil.cpp')
| -rw-r--r-- | highlevelil.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/highlevelil.cpp b/highlevelil.cpp index a355c561..f5b7fba2 100644 --- a/highlevelil.cpp +++ b/highlevelil.cpp @@ -416,10 +416,12 @@ void HighLevelILFunction::Finalize() } -vector<DisassemblyTextLine> HighLevelILFunction::GetExprText(ExprId expr, bool asFullAst) +vector<DisassemblyTextLine> HighLevelILFunction::GetExprText(ExprId expr, + bool asFullAst, DisassemblySettings* settings) { size_t count; - BNDisassemblyTextLine* lines = BNGetHighLevelILExprText(m_object, expr, asFullAst, &count); + BNDisassemblyTextLine* lines = BNGetHighLevelILExprText(m_object, expr, asFullAst, &count, + settings ? settings->GetObject() : nullptr); vector<DisassemblyTextLine> result; result.reserve(count); @@ -439,16 +441,18 @@ vector<DisassemblyTextLine> HighLevelILFunction::GetExprText(ExprId expr, bool a } -vector<DisassemblyTextLine> HighLevelILFunction::GetExprText(const HighLevelILInstruction& instr, bool asFullAst) +vector<DisassemblyTextLine> HighLevelILFunction::GetExprText(const HighLevelILInstruction& instr, + bool asFullAst, DisassemblySettings* settings) { - return GetExprText(instr.exprIndex, asFullAst); + return GetExprText(instr.exprIndex, asFullAst, settings); } -vector<DisassemblyTextLine> HighLevelILFunction::GetInstructionText(size_t i, bool asFullAst) +vector<DisassemblyTextLine> HighLevelILFunction::GetInstructionText(size_t i, + bool asFullAst, DisassemblySettings* settings) { HighLevelILInstruction instr = GetInstruction(i); - return GetExprText(instr, asFullAst); + return GetExprText(instr, asFullAst, settings); } |
