From fb414dfd655255b1f5bf5a42f1c4e36bf647e528 Mon Sep 17 00:00:00 2001 From: Jon Palmisciano Date: Sat, 30 Apr 2022 11:29:23 -0400 Subject: [PATCH] Use Objective-C method syntax for function symbols Resolves: #37 --- Plugin/InfoHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/InfoHandler.cpp b/Plugin/InfoHandler.cpp index c82edd2..92b2f37 100644 --- a/Plugin/InfoHandler.cpp +++ b/Plugin/InfoHandler.cpp @@ -114,7 +114,7 @@ void InfoHandler::applyMethodType(BinaryViewRef bv, const ObjectiveNinja::ClassI if (auto f = bv->GetAnalysisFunction(bv->GetDefaultPlatform(), mi.implAddress)) f->SetUserType(functionNat.type); - auto name = ci.name + "_" + sanitizeSelector(mi.selector); + auto name = "[" + ci.name + " " + mi.selector + "]"; defineSymbol(bv, mi.implAddress, name, "", FunctionSymbol); }