From 50deb50069ed47ec66cacb170413b47e60b2044e Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 2 Oct 2019 09:43:46 +0200 Subject: Debugger: Introduce a checkbox ... to propagate breakpoint changes from a running debugger back to the original preset breakpoint. This is currently unused as some changes are already propagated, and some not, so a bit more diligence is needed. For now it is there to have the new label string in safely before string freeze. Change-Id: I8ee4d07bab5a4f66e59bf992ebfd81c56fdb3ecf Reviewed-by: David Schulz --- src/plugins/debugger/breakhandler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 8befb49f8e..0958c23306 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -345,6 +345,7 @@ private: Utils::PathChooser *m_pathChooserFileName; QLabel *m_labelLineNumber; QLineEdit *m_lineEditLineNumber; + QCheckBox *m_checkBoxPropagate; QLabel *m_labelEnabled; QCheckBox *m_checkBoxEnabled; QLabel *m_labelAddress; @@ -501,6 +502,11 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent) m_labelThreadSpec = new QLabel(tr("&Thread specification:"), groupBoxAdvanced); m_labelThreadSpec->setBuddy(m_lineEditThreadSpec); + m_checkBoxPropagate = new QCheckBox(tr("Propagate Change to Preset Breakpoint"), this); + m_checkBoxPropagate->setCheckable(true); + m_checkBoxPropagate->setChecked(true); + m_checkBoxPropagate->setVisible(false); // FIXME: Make it work. + m_buttonBox = new QDialogButtonBox(this); m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok); @@ -538,6 +544,8 @@ BreakpointDialog::BreakpointDialog(unsigned int enabledParts, QWidget *parent) verticalLayout->addSpacing(10); verticalLayout->addWidget(groupBoxAdvanced); verticalLayout->addSpacing(10); + verticalLayout->addWidget(m_checkBoxPropagate); + verticalLayout->addSpacing(10); verticalLayout->addWidget(m_buttonBox); verticalLayout->setStretchFactor(groupBoxAdvanced, 10); -- cgit v1.2.3