diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-08-25 20:42:33 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-08-25 20:42:33 -0400 |
| commit | e878199be4a74c880acd5d38c33965b47d7630d0 (patch) | |
| tree | e75461ca2e6404dc62d1584eef5a870efc682114 /function.cpp | |
| parent | c3693b77c1fa9c1b5c45483045eeab929cf7bd16 (diff) | |
Adding APIs for database save/load progress and constant references
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp index c5033276..27193992 100644 --- a/function.cpp +++ b/function.cpp @@ -288,6 +288,19 @@ vector<StackVariableReference> Function::GetStackVariablesReferencedByInstructio } +vector<BNConstantReference> Function::GetConstantsReferencedByInstruction(Architecture* arch, uint64_t addr) +{ + size_t count; + BNConstantReference* refs = BNGetConstantsReferencedByInstruction(m_object, arch->GetObject(), addr, &count); + + vector<BNConstantReference> result; + result.insert(result.end(), &refs[0], &refs[count]); + + BNFreeConstantReferenceList(refs); + return result; +} + + Ref<LowLevelILFunction> Function::GetLiftedIL() const { return new LowLevelILFunction(BNGetFunctionLiftedIL(m_object)); |
