MCPcopy Create free account
hub / github.com/Vector35/debugger / CreateDebuggerBinaryView

Method CreateDebuggerBinaryView

core/debuggercontroller.cpp:708–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706
707
708bool DebuggerController::CreateDebuggerBinaryView()
709{
710 BinaryViewTypeRef viewType = BinaryViewType::GetByName("Debugger");
711 if (!viewType)
712 return false;
713
714 BinaryViewRef liveView = viewType->Create(GetData());
715 if (!liveView)
716 return false;
717
718 // The bvt does not set the arch and platform for the created binary view. We must set them explicitly.
719 // TODO: in the future, when we add support for using the debugger without a base binary view (i.e., the m_data in
720 // this code), we will need to either read these info from the adapter backends, or make a UI to allow the user to
721 // inform us the values.
722 liveView->SetDefaultArchitecture(GetData()->GetDefaultArchitecture());
723 liveView->SetDefaultPlatform(GetData()->GetDefaultPlatform());
724 SetLiveView(liveView);
725
726 return true;
727}
728
729
730void DebuggerController::DetectLoadedModule()

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected