| 28 | class DebugNullView; |
| 29 | |
| 30 | class DebugProcessView : public BinaryView |
| 31 | { |
| 32 | size_t m_addressSize; |
| 33 | BNEndianness m_endian; |
| 34 | Ref<Architecture> m_arch; |
| 35 | Ref<Platform> m_platform; |
| 36 | uint64_t m_length; |
| 37 | |
| 38 | DbgRef<DebuggerController> m_controller; |
| 39 | size_t m_eventCallback; |
| 40 | |
| 41 | bool m_aggressiveAnalysisUpdate; |
| 42 | |
| 43 | virtual uint64_t PerformGetEntryPoint() const override; |
| 44 | |
| 45 | virtual bool PerformIsExecutable() const override { return true; } |
| 46 | virtual BNEndianness PerformGetDefaultEndianness() const override; |
| 47 | virtual bool PerformIsRelocatable() const override { return true; }; |
| 48 | virtual size_t PerformGetAddressSize() const override; |
| 49 | virtual bool PerformIsValidOffset(uint64_t addr) override { return true; } |
| 50 | virtual uint64_t PerformGetLength() const override; |
| 51 | |
| 52 | virtual size_t PerformRead(void* dest, uint64_t offset, size_t len) override; |
| 53 | virtual size_t PerformWrite(uint64_t offset, const void* data, size_t len) override; |
| 54 | |
| 55 | public: |
| 56 | DebugProcessView(DebugNullView* nullView, BinaryView* data); |
| 57 | virtual ~DebugProcessView(); |
| 58 | virtual bool Init() override; |
| 59 | |
| 60 | void MarkDirty(); |
| 61 | void ForceMemoryCacheUpdate(); |
| 62 | void eventHandler(const DebuggerEvent& event); |
| 63 | }; |
| 64 | |
| 65 | |
| 66 | class DebugProcessViewType : public BinaryViewType |
nothing calls this directly
no outgoing calls
no test coverage detected