From 902ef4d9ca892e3de23355c3c0fc7b49bf1d9726 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Fri, 12 Feb 2021 13:58:24 -0500 Subject: Add unresolved control-flow tracking and associated tag support. --- function.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 80f55fe6..50799191 100644 --- a/function.cpp +++ b/function.cpp @@ -1192,6 +1192,23 @@ vector Function::GetIndirectBranchesAt(Architecture* arch, u } +vector Function::GetUnresolvedIndirectBranches() +{ + size_t count; + uint64_t* addrs = BNGetUnresolvedIndirectBranches(m_object, &count); + vector result; + result.insert(result.end(), addrs, &addrs[count]); + BNFreeAddressList(addrs); + return result; +} + + +bool Function::HasUnresolvedIndirectBranches() +{ + return BNHasUnresolvedIndirectBranches(m_object); +} + + void Function::SetAutoCallTypeAdjustment(Architecture* arch, uint64_t addr, const Confidence>& adjust) { BNTypeWithConfidence apiObject; -- cgit v1.3.1