MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / Parse

Method Parse

debuginfo.cpp:408–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407
408Ref<DebugInfo> DebugInfoParser::Parse(Ref<BinaryView> view, Ref<BinaryView> debugFile, Ref<DebugInfo> existingDebugInfo,
409 std::function<bool(size_t, size_t)> progress) const
410{
411 ProgressContext ctxt;
412 if (progress)
413 ctxt.callback = progress;
414 else
415 ctxt.callback = [=](size_t, size_t) { return true; };
416
417 BNDebugInfo* info = nullptr;
418 if (existingDebugInfo)
419 {
420 info = BNParseDebugInfo(m_object, view->GetObject(), debugFile->GetObject(), existingDebugInfo->GetObject(),
421 ProgressCallback, &ctxt);
422 if (!info)
423 return nullptr;
424 info = BNNewDebugInfoReference(info);
425 }
426 else
427 {
428 info = BNParseDebugInfo(m_object, view->GetObject(), debugFile->GetObject(), nullptr, ProgressCallback, &ctxt);
429 if (!info)
430 return nullptr;
431 }
432 return new DebugInfo(info);
433}
434
435
436bool DebugInfoParser::IsValidForView(const Ref<BinaryView> view) const

Callers 8

PostRequestMethod · 0.45
PostJsonRequestMethod · 0.45
GetStateMethod · 0.45
GetLogStatusMethod · 0.45
SetLogEnabledMethod · 0.45
QueryOverrideMethod · 0.45
SetOverrideMethod · 0.45
ClearOverrideMethod · 0.45

Calls 1

GetObjectMethod · 0.45

Tested by

no test coverage detected