From a553f2238575420b26e42f8e424f1c90276fe615 Mon Sep 17 00:00:00 2001 From: Rena Kunisaki Date: Mon, 6 Jul 2020 18:16:32 -0400 Subject: Add Break On Hit and Log On Hit for instruction breakpoints --- .../DolphinQt/Debugger/NewBreakpointDialog.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp') diff --git a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp index 6271be807a..4ad30016cd 100644 --- a/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp +++ b/Source/Core/DolphinQt/Debugger/NewBreakpointDialog.cpp @@ -62,12 +62,12 @@ void NewBreakpointDialog::CreateWidgets() m_memory_on_read_and_write = new QRadioButton(tr("Read or Write")); m_memory_on_write->setChecked(true); // i18n: This is a selectable action when adding a breakpoint - m_memory_do_log = new QRadioButton(tr("Write to Log")); + m_do_log = new QRadioButton(tr("Write to Log")); // i18n: This is a selectable action when adding a breakpoint - m_memory_do_break = new QRadioButton(tr("Break")); + m_do_break = new QRadioButton(tr("Break")); // i18n: This is a selectable action when adding a breakpoint - m_memory_do_log_and_break = new QRadioButton(tr("Write to Log and Break")); - m_memory_do_log_and_break->setChecked(true); + m_do_log_and_break = new QRadioButton(tr("Write to Log and Break")); + m_do_log_and_break->setChecked(true); auto* memory_layout = new QGridLayout; m_memory_box->setLayout(memory_layout); @@ -89,10 +89,9 @@ void NewBreakpointDialog::CreateWidgets() QGroupBox* action_box = new QGroupBox(tr("Action")); auto* action_layout = new QHBoxLayout; action_box->setLayout(action_layout); - memory_layout->addWidget(action_box, 3, 0, 1, -1); - action_layout->addWidget(m_memory_do_log); - action_layout->addWidget(m_memory_do_break); - action_layout->addWidget(m_memory_do_log_and_break); + action_layout->addWidget(m_do_log); + action_layout->addWidget(m_do_break); + action_layout->addWidget(m_do_log_and_break); auto* layout = new QVBoxLayout; @@ -100,6 +99,7 @@ void NewBreakpointDialog::CreateWidgets() layout->addWidget(m_instruction_box); layout->addWidget(m_memory_bp); layout->addWidget(m_memory_box); + layout->addWidget(action_box); layout->addWidget(m_buttons); setLayout(layout); @@ -150,8 +150,8 @@ void NewBreakpointDialog::accept() bool on_write = m_memory_on_write->isChecked() || m_memory_on_read_and_write->isChecked(); // Actions - bool do_log = m_memory_do_log->isChecked() || m_memory_do_log_and_break->isChecked(); - bool do_break = m_memory_do_break->isChecked() || m_memory_do_log_and_break->isChecked(); + bool do_log = m_do_log->isChecked() || m_do_log_and_break->isChecked(); + bool do_break = m_do_break->isChecked() || m_do_log_and_break->isChecked(); bool good; @@ -165,7 +165,7 @@ void NewBreakpointDialog::accept() return; } - m_parent->AddBP(address); + m_parent->AddBP(address, false, do_break, do_log); } else { -- cgit v1.2.3