summaryrefslogtreecommitdiff
path: root/highlevelilinstruction.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-06-07 21:51:27 -0400
committerGlenn Smith <glenn@vector35.com>2022-06-14 21:05:38 -0400
commitb15607dc351bd7787b85751bce9bbddc0a705461 (patch)
tree47558d7c26d1b8acb2fe4788e252634b1c139fd1 /highlevelilinstruction.h
parent55cb3e76f536bc8d4a6533bd7ea5202d464c5f81 (diff)
Add Dump() to *LILInstruction
Diffstat (limited to 'highlevelilinstruction.h')
-rw-r--r--highlevelilinstruction.h7
1 files changed, 5 insertions, 2 deletions
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<HighLevelILFunction> function;
+ Ref<HighLevelILFunction> 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;