From 372cd19178f3afbe2d2183795b362e4a912d9275 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 10 Sep 2019 23:12:08 -0400 Subject: Fix QT debugger (nw) --- src/osd/modules/debugger/qt/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/osd') diff --git a/src/osd/modules/debugger/qt/mainwindow.cpp b/src/osd/modules/debugger/qt/mainwindow.cpp index 84aad82e363..6a79ebf955d 100644 --- a/src/osd/modules/debugger/qt/mainwindow.cpp +++ b/src/osd/modules/debugger/qt/mainwindow.cpp @@ -230,7 +230,7 @@ void MainWindow::toggleBreakpointAtCursor(bool changedTo) } else { - command = string_format("bpclear 0x%X", bp.index()); + command = string_format("bpclear 0x%X", bp->index()); } m_machine->debugger().console().execute_command(command.c_str(), true); } @@ -252,8 +252,8 @@ void MainWindow::enableBreakpointAtCursor(bool changedTo) if (bp != nullptr) { - int32_t const bpindex = bp.index(); - std::string command = string_format(bp.enabled() ? "bpdisable 0x%X" : "bpenable 0x%X", bpindex); + int32_t const bpindex = bp->index(); + std::string command = string_format(bp->enabled() ? "bpdisable 0x%X" : "bpenable 0x%X", bpindex); m_machine->debugger().console().execute_command(command.c_str(), true); } } -- cgit v1.2.3