From 68a9e96c98dbed4e4154a13ffec7b9c94876661a Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Mon, 27 Apr 2020 23:14:44 -0400 Subject: Add names for goto labels --- function.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 304a59e2..e4e8af17 100644 --- a/function.cpp +++ b/function.cpp @@ -1718,6 +1718,21 @@ void Function::RequestDebugReport(const string& name) } +string Function::GetGotoLabelName(uint64_t labelId) +{ + char* name = BNGetGotoLabelName(m_object, labelId); + string result = name; + BNFreeString(name); + return result; +} + + +void Function::SetGotoLabelName(uint64_t labelId, const std::string& name) +{ + BNSetUserGotoLabelName(m_object, labelId, name.c_str()); +} + + AdvancedFunctionAnalysisDataRequestor::AdvancedFunctionAnalysisDataRequestor(Function* func): m_func(func) { if (m_func) -- cgit v1.3.1