diff options
author | 2016-06-08 08:10:55 +1000 | |
---|---|---|
committer | 2016-06-08 08:10:55 +1000 | |
commit | 56bd36c5ef3960874628bc08cbfcedf4c6057a19 (patch) | |
tree | 3cce04b8c27b773befde51785210bc83673f9fd0 /src/osd/modules/debugger/qt/dasmwindow.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/osd/modules/debugger/qt/dasmwindow.cpp')
-rw-r--r-- | src/osd/modules/debugger/qt/dasmwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/modules/debugger/qt/dasmwindow.cpp b/src/osd/modules/debugger/qt/dasmwindow.cpp index 3cd1dca65ac..7e6b134aef5 100644 --- a/src/osd/modules/debugger/qt/dasmwindow.cpp +++ b/src/osd/modules/debugger/qt/dasmwindow.cpp @@ -158,12 +158,12 @@ void DasmWindow::toggleBreakpointAtCursor(bool changedTo) if (bpindex == -1) { bpindex = cpuinfo->breakpoint_set(address, nullptr, nullptr); - debug_console_printf(*m_machine, "Breakpoint %X set\n", bpindex); + m_machine->debugger().console().printf("Breakpoint %X set\n", bpindex); } else { cpuinfo->breakpoint_clear(bpindex); - debug_console_printf(*m_machine, "Breakpoint %X cleared\n", bpindex); + m_machine->debugger().console().printf("Breakpoint %X cleared\n", bpindex); } m_machine->debug_view().update_all(); m_machine->debugger().refresh_display(); @@ -189,7 +189,7 @@ void DasmWindow::enableBreakpointAtCursor(bool changedTo) if (bp != nullptr) { cpuinfo->breakpoint_enable(bp->index(), !bp->enabled()); - debug_console_printf(*m_machine, "Breakpoint %X %s\n", (UINT32)bp->index(), bp->enabled() ? "enabled" : "disabled"); + m_machine->debugger().console().printf("Breakpoint %X %s\n", (UINT32)bp->index(), bp->enabled() ? "enabled" : "disabled"); m_machine->debug_view().update_all(); m_machine->debugger().refresh_display(); } |