From 99c7a280ae771073b6a36e958426d6f2c7d29462 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Sat, 22 Apr 2023 12:00:38 -0400 Subject: Pass debug file along with original file to debug info parsers --- binaryninjaapi.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'binaryninjaapi.h') diff --git a/binaryninjaapi.h b/binaryninjaapi.h index de79371d..1da9bf3a 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -14736,7 +14736,7 @@ namespace BinaryNinja { static std::vector> GetListForView(const Ref data); std::string GetName() const; - Ref Parse(Ref view, Ref existingDebugInfo = nullptr, std::function progress = {}) const; + Ref Parse(Ref view, Ref debugView, Ref existingDebugInfo = nullptr, std::function progress = {}) const; bool IsValidForView(const Ref view) const; }; @@ -14747,7 +14747,7 @@ namespace BinaryNinja { class CustomDebugInfoParser : public DebugInfoParser { static bool IsValidCallback(void* ctxt, BNBinaryView* view); - static bool ParseCallback(void* ctxt, BNDebugInfo* debugInfo, BNBinaryView* view, bool (*progress)(void*, size_t, size_t), void* progressCtxt); + static bool ParseCallback(void* ctxt, BNDebugInfo* debugInfo, BNBinaryView* view, BNBinaryView* debugFile, bool (*progress)(void*, size_t, size_t), void* progressCtxt); BNDebugInfoParser* Register(const std::string& name); public: @@ -14755,7 +14755,8 @@ namespace BinaryNinja { virtual ~CustomDebugInfoParser() {} virtual bool IsValid(Ref) = 0; - virtual bool ParseInfo(Ref, Ref, std::function) = 0; + virtual bool ParseInfo( + Ref, Ref, Ref, std::function) = 0; }; /*! Class for storing secrets (e.g. tokens) in a system-specific manner -- cgit v1.3.1