From fb0fcd199680032932784b07b074738999779d58 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 16 Jan 2024 15:07:23 -0500 Subject: Add support for components in debug info --- binaryninjaapi.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 5b92a2e5..872b862b 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -15557,11 +15557,12 @@ namespace BinaryNinja { uint64_t address; Ref type; Ref platform; + std::vector components; DebugFunctionInfo(std::string shortName, std::string fullName, std::string rawName, uint64_t address, - Ref type, Ref platform) : - shortName(shortName), - fullName(fullName), rawName(rawName), address(address), platform(platform) + Ref type, Ref platform, const std::vector& components) : + shortName(shortName), fullName(fullName), rawName(rawName), + address(address), platform(platform), components(components) {} }; @@ -15606,9 +15607,9 @@ namespace BinaryNinja { bool RemoveFunctionByIndex(const std::string& parserName, const size_t index); bool RemoveDataVariableByAddress(const std::string& parserName, const uint64_t address); - bool AddType(const std::string& name, Ref type); + bool AddType(const std::string& name, Ref type, const std::vector& components = {}); bool AddFunction(const DebugFunctionInfo& function); - bool AddDataVariable(uint64_t address, Ref type, const std::string& name = ""); + bool AddDataVariable(uint64_t address, Ref type, const std::string& name = "", const std::vector& components = {}); }; /*! -- cgit v1.3.1