| 115 | |
| 116 | |
| 117 | Ref<BinaryView> DebugProcessViewType::Parse(BinaryView* data) |
| 118 | { |
| 119 | try |
| 120 | { |
| 121 | // the null view must be ref-counted, otherwise there will be a memory leak |
| 122 | Ref<DebugNullView> nullView = new DebugNullView(data); |
| 123 | return new DebugProcessView(nullView, data); |
| 124 | } |
| 125 | catch (std::exception& e) |
| 126 | { |
| 127 | LogError("%s<BinaryViewType> failed to create view! '%s'", GetName().c_str(), e.what()); |
| 128 | return nullptr; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | |
| 133 | void BinaryNinjaDebugger::InitDebugProcessViewType() |