From 7829801632556958526537447495764541534147 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 14 Feb 2023 17:48:23 -0500 Subject: Add DisassemblySettings to LLIL::GetExprText To make possible the next commit --- lowlevelil.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lowlevelil.cpp') diff --git a/lowlevelil.cpp b/lowlevelil.cpp index dfb53e5b..fdb59535 100644 --- a/lowlevelil.cpp +++ b/lowlevelil.cpp @@ -623,11 +623,13 @@ void LowLevelILFunction::GenerateSSAForm() } -bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector& tokens) +bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector& tokens, + DisassemblySettings* settings) { size_t count; BNInstructionTextToken* list; - if (!BNGetLowLevelILExprText(m_object, arch->GetObject(), expr, &list, &count)) + if (!BNGetLowLevelILExprText(m_object, arch->GetObject(), expr, settings ? settings->GetObject() : nullptr, + &list, &count)) return false; tokens = InstructionTextToken::ConvertAndFreeInstructionTextTokenList(list, count); @@ -636,12 +638,13 @@ bool LowLevelILFunction::GetExprText(Architecture* arch, ExprId expr, vector& tokens) + Function* func, Architecture* arch, size_t instr, vector& tokens, DisassemblySettings* settings) { size_t count; BNInstructionTextToken* list; if (!BNGetLowLevelILInstructionText( - m_object, func ? func->GetObject() : nullptr, arch->GetObject(), instr, &list, &count)) + m_object, func ? func->GetObject() : nullptr, arch->GetObject(), instr, + settings ? settings->GetObject() : nullptr, &list, &count)) return false; tokens = InstructionTextToken::ConvertAndFreeInstructionTextTokenList(list, count); -- cgit v1.3.1