diff options
Diffstat (limited to 'debuginfo.cpp')
| -rw-r--r-- | debuginfo.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/debuginfo.cpp b/debuginfo.cpp index e8450399..59636d4a 100644 --- a/debuginfo.cpp +++ b/debuginfo.cpp @@ -222,6 +222,12 @@ Ref<DebugInfo> DebugInfoParser::Parse(Ref<BinaryView> view, Ref<DebugInfo> exist } +bool DebugInfoParser::IsExternal() const +{ + return BNIsDebugInfoParserExternal(m_object); +} + + bool DebugInfoParser::IsValidForView(const Ref<BinaryView> view) const { return BNIsDebugInfoParserValidForView(m_object, view->GetObject()); @@ -232,6 +238,12 @@ bool DebugInfoParser::IsValidForView(const Ref<BinaryView> view) const // Plugin registration APIs // ////////////////////////////// +bool CustomDebugInfoParser::IsExternalCallback(void* ctxt) +{ + CustomDebugInfoParser* parser = (CustomDebugInfoParser*)ctxt; + return parser->IsExternal(); +} + bool CustomDebugInfoParser::IsValidCallback(void* ctxt, BNBinaryView* view) { @@ -249,5 +261,5 @@ void CustomDebugInfoParser::ParseCallback(void* ctxt, BNDebugInfo* debugInfo, BN CustomDebugInfoParser::CustomDebugInfoParser(const string& name) : DebugInfoParser( - BNNewDebugInfoParserReference(BNRegisterDebugInfoParser(name.c_str(), IsValidCallback, ParseCallback, this))) + BNNewDebugInfoParserReference(BNRegisterDebugInfoParser(name.c_str(), IsExternalCallback, IsValidCallback, ParseCallback, this))) {} |
