Debugger: Add edit mode support to MemoryView

Operating Systems / Haiku - Rene Gollent [gollent.com] - 23 May 2015 15:54 UTC

MemoryView:
- Add hooks and supporting status tracking members to enable edit mode. When editing is requested, we allocate a duplicate copy of the current block's data to perform edits in. Currently, editing is only supported from within the hex view, and when edit mode is enabled, the view is locked to 8-bit hex mode in order to avoid any possible confusion with regards to source vs target endian orientation.- Extend Draw() to determine whether to write data from the edit data store or the actual memory block. Also implement highlighting the current edit position caret when in edit mode, as well as highlighting bytes that have been changed compared to the block's original data.

6ce9090 Debugger: Add edit mode support to MemoryView.
.../gui/inspector_window/MemoryView.cpp | 217 ++++++++++++++++++--
.../gui/inspector_window/MemoryView.h | 31 ++-
2 files changed, 224 insertions(+), 24 deletions(-)

Upstream: cgit.haiku-os.org


  • Share