| 706 | |
| 707 | |
| 708 | bool 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 | |
| 730 | void DebuggerController::DetectLoadedModule() |