From 41213e0c959b4b11e3059b60ec5248b31024d236 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sun, 13 Jul 2025 19:09:58 -0400 Subject: Expose analysis' system call type and name retrieval Previously we only really had a way to access the platform system call information, this was missing the system call information found in type libraries Fixes https://github.com/Vector35/binaryninja-api/issues/7089 --- lang/rust/pseudorust.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lang/rust/pseudorust.cpp') diff --git a/lang/rust/pseudorust.cpp b/lang/rust/pseudorust.cpp index 429def51..0acb10cd 100644 --- a/lang/rust/pseudorust.cpp +++ b/lang/rust/pseudorust.cpp @@ -2723,13 +2723,14 @@ void PseudoRustFunction::GetExprText(const HighLevelILInstruction& instr, HighLe if (GetFunction() && (operandList.size() > 0) && (operandList[0].operation == HLIL_CONST)) { const auto platform = GetFunction()->GetPlatform(); + const auto view = GetFunction()->GetView(); if (platform) { const auto syscall = (uint32_t)operandList[0].GetConstant(); - const auto syscallName = platform->GetSystemCallName(syscall); + const auto syscallName = view->GetSystemCallName(platform, syscall); if (settings && settings->GetCallParameterHints() != NeverShowParameterHints) { - const auto functionType = platform->GetSystemCallType(syscall); + const auto functionType = view->GetSystemCallType(platform, syscall); if (functionType && (functionType->GetClass() == FunctionTypeClass)) namedParams = functionType->GetParameters(); } -- cgit v1.3.1