From bdf05c261bd1c24f0440c17e10b983b50613bc20 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 22 Sep 2022 13:43:46 -0400 Subject: Add new DebugInfo APIs --- binaryninjaapi.h | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 752b9c52..5c04816b 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -11933,9 +11933,31 @@ namespace BinaryNinja { public: DebugInfo(BNDebugInfo* debugInfo); - std::vector GetTypes(const std::string& parserName = ""); - std::vector GetFunctions(const std::string& parserName = ""); - std::vector GetDataVariables(const std::string& parserName = ""); + std::vector GetParsers() const; + + std::vector GetTypes(const std::string& parserName = "") const; + std::vector GetFunctions(const std::string& parserName = "") const; + std::vector GetDataVariables(const std::string& parserName = "") const; + + Ref GetTypeByName(const std::string& parserName, const std::string& name) const; + std::optional>> GetDataVariableByName( + const std::string& parserName, const std::string& name) const; + std::optional>> GetDataVariableByAddress( + const std::string& parserName, const uint64_t address) const; + + std::vector>> GetTypesByName(const std::string& name) const; + std::vector>> GetDataVariablesByName(const std::string& name) const; + std::vector>> GetDataVariablesByAddress( + const uint64_t address) const; + + bool RemoveParserInfo(const std::string& parserName); + bool RemoveParserTypes(const std::string& parserName); + bool RemoveParserFunctions(const std::string& parserName); + bool RemoveParserDataVariables(const std::string& parserName); + + bool RemoveTypeByName(const std::string& parserName, const std::string& name); + 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 AddFunction(const DebugFunctionInfo& function); -- cgit v1.3.1