diff options
| author | Brian Potchik <brian@vector35.com> | 2021-01-20 10:53:04 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2021-01-20 10:53:04 -0500 |
| commit | f1166563f54d28a745eb781dfe27c13a099bb7d9 (patch) | |
| tree | 7d34521fa7189085cd193bf45ca05ad1f9e91753 /function.cpp | |
| parent | 13f6e450824dbce2e73b9139dc7283ef903210d1 (diff) | |
Add get_lifted_ils_at API.
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp index 805e9560..80f55fe6 100644 --- a/function.cpp +++ b/function.cpp @@ -558,6 +558,20 @@ size_t Function::GetLiftedILForInstruction(Architecture* arch, uint64_t addr) } +set<size_t> Function::GetLiftedILInstructionsForAddress(Architecture* arch, uint64_t addr) +{ + size_t count; + size_t* instrs = BNGetLiftedILInstructionsForAddress(m_object, arch->GetObject(), addr, &count); + + set<size_t> result; + for (size_t i = 0; i < count; i++) + result.insert(instrs[i]); + + BNFreeILInstructionList(instrs); + return result; +} + + set<size_t> Function::GetLiftedILFlagUsesForDefinition(size_t i, uint32_t flag) { size_t count; |
