diff options
| author | KyleMiles <krm504@nyu.edu> | 2024-01-16 15:07:23 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2024-01-19 15:45:24 -0500 |
| commit | fb0fcd199680032932784b07b074738999779d58 (patch) | |
| tree | 55a1d53541c0ec99bb486ff9863d14540602ad9c /binaryninjaapi.h | |
| parent | 60d69dba06adb8ea442ee5e28c1bfda5290818e1 (diff) | |
Add support for components in debug info
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 11 |
1 files changed, 6 insertions, 5 deletions
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> type; Ref<Platform> platform; + std::vector<std::string> components; DebugFunctionInfo(std::string shortName, std::string fullName, std::string rawName, uint64_t address, - Ref<Type> type, Ref<Platform> platform) : - shortName(shortName), - fullName(fullName), rawName(rawName), address(address), platform(platform) + Ref<Type> type, Ref<Platform> platform, const std::vector<std::string>& 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> type); + bool AddType(const std::string& name, Ref<Type> type, const std::vector<std::string>& components = {}); bool AddFunction(const DebugFunctionInfo& function); - bool AddDataVariable(uint64_t address, Ref<Type> type, const std::string& name = ""); + bool AddDataVariable(uint64_t address, Ref<Type> type, const std::string& name = "", const std::vector<std::string>& components = {}); }; /*! |
