From b6feff3f3d3bdcb4bea983a085f4ed794e186940 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Tue, 16 Feb 2021 18:34:59 +0800 Subject: add a DisassemblySettings* parameter to MLIL/HLIL functions that retrieve instruction/expr text --- binaryninjaapi.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 5e74d17d..4209b1b6 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -4089,9 +4089,11 @@ __attribute__ ((format (printf, 1, 2))) const std::set& knownNotAliases = std::set(), const std::set& knownAliases = std::set()); - bool GetExprText(Architecture* arch, ExprId expr, std::vector& tokens); + bool GetExprText(Architecture* arch, ExprId expr, + std::vector& tokens, + DisassemblySettings* settings = nullptr); bool GetInstructionText(Function* func, Architecture* arch, size_t i, - std::vector& tokens); + std::vector& tokens, DisassemblySettings* settings = nullptr); void VisitInstructions(const std::function& func); void VisitAllExprs(const std::function& func); @@ -4421,9 +4423,12 @@ __attribute__ ((format (printf, 1, 2))) void Finalize(); - std::vector GetExprText(ExprId expr, bool asFullAst = true); - std::vector GetExprText(const HighLevelILInstruction& instr, bool asFullAst = true); - std::vector GetInstructionText(size_t i, bool asFullAst = true); + std::vector GetExprText(ExprId expr, + bool asFullAst = true, DisassemblySettings* settings = nullptr); + std::vector GetExprText(const HighLevelILInstruction& instr, + bool asFullAst = true, DisassemblySettings* settings = nullptr); + std::vector GetInstructionText(size_t i, + bool asFullAst = true, DisassemblySettings* settings = nullptr); Confidence> GetExprType(size_t expr); Confidence> GetExprType(const HighLevelILInstruction& expr); -- cgit v1.3.1