From b15607dc351bd7787b85751bce9bbddc0a705461 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 7 Jun 2022 21:51:27 -0400 Subject: Add Dump() to *LILInstruction --- highlevelilinstruction.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'highlevelilinstruction.h') diff --git a/highlevelilinstruction.h b/highlevelilinstruction.h index 6947479c..9cdb9b1a 100644 --- a/highlevelilinstruction.h +++ b/highlevelilinstruction.h @@ -293,9 +293,9 @@ namespace BinaryNinja struct HighLevelILInstructionBase : public BNHighLevelILInstruction { #ifdef BINARYNINJACORE_LIBRARY - HighLevelILFunction* function; + HighLevelILFunction* function = nullptr; #else - Ref function; + Ref function = nullptr; #endif size_t exprIndex, instructionIndex; bool ast; @@ -338,6 +338,9 @@ namespace BinaryNinja MediumLevelILInstruction GetMediumLevelIL() const; MediumLevelILInstruction GetMediumLevelILSSAForm() const; + // Return (and leak) a string describing the instruction for debugger use + char* Dump() const; + void Replace(ExprId expr); size_t GetInstructionIndex() const; -- cgit v1.3.1