diff options
| author | 2016-06-08 08:10:55 +1000 | |
|---|---|---|
| committer | 2016-06-08 08:10:55 +1000 | |
| commit | 56bd36c5ef3960874628bc08cbfcedf4c6057a19 (patch) | |
| tree | 3cce04b8c27b773befde51785210bc83673f9fd0 /src/emu/debug/dvmemory.cpp | |
| parent | bf281b3cad1d05c6ef863fa179d3d6ab442a163c (diff) | |
Major refactoring of debugger core [Ryan Holtz]
* Eliminate globals/file statics
* Remove lots of stuff from global scope
* Use std::function for custom command registration
* Eliminate some trampolines
* Build fixes from Vas Crabb and balr0g
Diffstat (limited to 'src/emu/debug/dvmemory.cpp')
| -rw-r--r-- | src/emu/debug/dvmemory.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/emu/debug/dvmemory.cpp b/src/emu/debug/dvmemory.cpp index 0724f9fa27d..8307812b365 100644 --- a/src/emu/debug/dvmemory.cpp +++ b/src/emu/debug/dvmemory.cpp @@ -12,6 +12,7 @@ #include "debugvw.h" #include "dvmemory.h" #include "debugcpu.h" +#include "debugger.h" #include <ctype.h> @@ -747,10 +748,10 @@ bool debug_view_memory::read(UINT8 size, offs_t offs, UINT64 &data) { switch (size) { - case 1: data = debug_read_byte(*source.m_space, offs, !m_no_translation); break; - case 2: data = debug_read_word(*source.m_space, offs, !m_no_translation); break; - case 4: data = debug_read_dword(*source.m_space, offs, !m_no_translation); break; - case 8: data = debug_read_qword(*source.m_space, offs, !m_no_translation); break; + case 1: data = machine().debugger().cpu().read_byte(*source.m_space, offs, !m_no_translation); break; + case 2: data = machine().debugger().cpu().read_word(*source.m_space, offs, !m_no_translation); break; + case 4: data = machine().debugger().cpu().read_dword(*source.m_space, offs, !m_no_translation); break; + case 8: data = machine().debugger().cpu().read_qword(*source.m_space, offs, !m_no_translation); break; } } return ismapped; @@ -819,10 +820,10 @@ void debug_view_memory::write(UINT8 size, offs_t offs, UINT64 data) { switch (size) { - case 1: debug_write_byte(*source.m_space, offs, data, !m_no_translation); break; - case 2: debug_write_word(*source.m_space, offs, data, !m_no_translation); break; - case 4: debug_write_dword(*source.m_space, offs, data, !m_no_translation); break; - case 8: debug_write_qword(*source.m_space, offs, data, !m_no_translation); break; + case 1: machine().debugger().cpu().write_byte(*source.m_space, offs, data, !m_no_translation); break; + case 2: machine().debugger().cpu().write_word(*source.m_space, offs, data, !m_no_translation); break; + case 4: machine().debugger().cpu().write_dword(*source.m_space, offs, data, !m_no_translation); break; + case 8: machine().debugger().cpu().write_qword(*source.m_space, offs, data, !m_no_translation); break; } return; } |
