summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/debugger/qt/breakpointswindow.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-18 08:22:21 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-18 08:22:21 +1100
commit40a30af10f05f6567f717e4d1004f7bae01b85a2 (patch)
tree13990300ff0940a5195192a6d76a55df58fa5c5a /src/osd/modules/debugger/qt/breakpointswindow.cpp
parent0a82b82684115f7d5334e65cef8c4297a50c4e19 (diff)
Still more user experience improvements:
Changed the default mapping for UI select to not trigger on Alt+Enter fullscreen toggle. (Fullscreen toggle still doesn't work in menus - actually fixing that is complicated.) frontend: Made the about box wrap text properly, made the title and backtrack menu item always visible, and added a footer with the VCS revision. frontend: Don't highlight the favourites and info toolbar buttons if there's no selection (can happen if filters produce no results). Also made the info viewer appear even if no info is available - it's less confusing to see an empty menu than wonder why clicking the button does nothing. debugger: Added a register points view to the GUI debuggers, to go with the breakpoints and watchpoints views. debugger: Extended [brw]p(clear|(en|dis)able) commands to accept multiple arguments to perform the same action on multiple (break|watch|register)points at once. Also made rplist accept a CPU for showing a single CPU's register points ([bw]plist already support this). docs: Updated registerpoints debugger commands page, and updated other pages for latest extensions to syntax.
Diffstat (limited to 'src/osd/modules/debugger/qt/breakpointswindow.cpp')
-rw-r--r--src/osd/modules/debugger/qt/breakpointswindow.cpp24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/osd/modules/debugger/qt/breakpointswindow.cpp b/src/osd/modules/debugger/qt/breakpointswindow.cpp
index 4f581137476..6af8fe7ba36 100644
--- a/src/osd/modules/debugger/qt/breakpointswindow.cpp
+++ b/src/osd/modules/debugger/qt/breakpointswindow.cpp
@@ -5,8 +5,6 @@
#include "debug/debugcon.h"
#include "debug/debugcpu.h"
-#include "debug/dvbpoints.h"
-#include "debug/dvwpoints.h"
#include <QtWidgets/QActionGroup>
#include <QtWidgets/QHBoxLayout>
@@ -48,16 +46,25 @@ BreakpointsWindow::BreakpointsWindow(running_machine &machine, QWidget *parent)
//
QActionGroup *typeGroup = new QActionGroup(this);
typeGroup->setObjectName("typegroup");
+
QAction *typeBreak = new QAction("Breakpoints", this);
typeBreak->setObjectName("typebreak");
+ typeBreak->setCheckable(true);
+ typeBreak->setActionGroup(typeGroup);
+ typeBreak->setShortcut(QKeySequence("Ctrl+1"));
+
QAction *typeWatch = new QAction("Watchpoints", this);
typeWatch->setObjectName("typewatch");
- typeBreak->setCheckable(true);
typeWatch->setCheckable(true);
- typeBreak->setActionGroup(typeGroup);
typeWatch->setActionGroup(typeGroup);
- typeBreak->setShortcut(QKeySequence("Ctrl+1"));
typeWatch->setShortcut(QKeySequence("Ctrl+2"));
+
+ QAction *typeRegister = new QAction("Registerpoints", this);
+ typeRegister->setObjectName("typeregister");
+ typeRegister->setCheckable(true);
+ typeRegister->setActionGroup(typeGroup);
+ typeRegister->setShortcut(QKeySequence("Ctrl+3"));
+
typeBreak->setChecked(true);
connect(typeGroup, &QActionGroup::triggered, this, &BreakpointsWindow::typeChanged);
@@ -89,6 +96,11 @@ void BreakpointsWindow::typeChanged(QAction* changedTo)
m_breakpointsView = new DebuggerView(DVT_WATCH_POINTS, m_machine, this);
setWindowTitle("Debug: All Watchpoints");
}
+ else if (changedTo->text() == "Registerpoints")
+ {
+ m_breakpointsView = new DebuggerView(DVT_REGISTER_POINTS, m_machine, this);
+ setWindowTitle("Debug: All Registerpoints");
+ }
// Re-register
QVBoxLayout *layout = findChild<QVBoxLayout *>("vlayout");
@@ -110,6 +122,8 @@ void BreakpointsWindowQtConfig::buildFromQWidget(QWidget *widget)
m_bwType = 0;
else if (typeGroup->checkedAction()->text() == "Watchpoints")
m_bwType = 1;
+ else if (typeGroup->checkedAction()->text() == "Registerpoints")
+ m_bwType = 2;
}