summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2020-04-27 23:14:44 -0400
committerRusty Wagner <rusty@vector35.com>2020-04-27 23:15:19 -0400
commit68a9e96c98dbed4e4154a13ffec7b9c94876661a (patch)
tree63088d43c0ea630e1df3511a2f00131f5598e326 /function.cpp
parent8947d620ff982ac5a40e925cce5d95637618a688 (diff)
Add names for goto labels
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp15
1 files changed, 15 insertions, 0 deletions
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)