diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-06-07 21:51:27 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-06-14 21:05:38 -0400 |
| commit | b15607dc351bd7787b85751bce9bbddc0a705461 (patch) | |
| tree | 47558d7c26d1b8acb2fe4788e252634b1c139fd1 /highlevelilinstruction.h | |
| parent | 55cb3e76f536bc8d4a6533bd7ea5202d464c5f81 (diff) | |
Add Dump() to *LILInstruction
Diffstat (limited to 'highlevelilinstruction.h')
| -rw-r--r-- | highlevelilinstruction.h | 7 |
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; |
