summaryrefslogtreecommitdiff
path: root/binaryninjaapi.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2021-02-16 18:34:59 +0800
committerXusheng <xusheng@vector35.com>2021-04-16 13:40:55 +0800
commitb6feff3f3d3bdcb4bea983a085f4ed794e186940 (patch)
treeb41a84f4dac229f21609932c7b5ec0d29507fa4f /binaryninjaapi.h
parente8b9e5e4520522bcfcd5b2ed2b343892f171d750 (diff)
add a DisassemblySettings* parameter to MLIL/HLIL functions that retrieve instruction/expr text
Diffstat (limited to 'binaryninjaapi.h')
-rw-r--r--binaryninjaapi.h15
1 files changed, 10 insertions, 5 deletions
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<Variable>& knownNotAliases = std::set<Variable>(),
const std::set<Variable>& knownAliases = std::set<Variable>());
- bool GetExprText(Architecture* arch, ExprId expr, std::vector<InstructionTextToken>& tokens);
+ bool GetExprText(Architecture* arch, ExprId expr,
+ std::vector<InstructionTextToken>& tokens,
+ DisassemblySettings* settings = nullptr);
bool GetInstructionText(Function* func, Architecture* arch, size_t i,
- std::vector<InstructionTextToken>& tokens);
+ std::vector<InstructionTextToken>& tokens, DisassemblySettings* settings = nullptr);
void VisitInstructions(const std::function<void(BasicBlock* block, const MediumLevelILInstruction& instr)>& func);
void VisitAllExprs(const std::function<bool(BasicBlock* block, const MediumLevelILInstruction& expr)>& func);
@@ -4421,9 +4423,12 @@ __attribute__ ((format (printf, 1, 2)))
void Finalize();
- std::vector<DisassemblyTextLine> GetExprText(ExprId expr, bool asFullAst = true);
- std::vector<DisassemblyTextLine> GetExprText(const HighLevelILInstruction& instr, bool asFullAst = true);
- std::vector<DisassemblyTextLine> GetInstructionText(size_t i, bool asFullAst = true);
+ std::vector<DisassemblyTextLine> GetExprText(ExprId expr,
+ bool asFullAst = true, DisassemblySettings* settings = nullptr);
+ std::vector<DisassemblyTextLine> GetExprText(const HighLevelILInstruction& instr,
+ bool asFullAst = true, DisassemblySettings* settings = nullptr);
+ std::vector<DisassemblyTextLine> GetInstructionText(size_t i,
+ bool asFullAst = true, DisassemblySettings* settings = nullptr);
Confidence<Ref<Type>> GetExprType(size_t expr);
Confidence<Ref<Type>> GetExprType(const HighLevelILInstruction& expr);