Make sure GDB window is created in sync with GDB server state

This commit is contained in:
Jeffrey Pfau 2014-02-03 03:44:39 -08:00
parent 8c53fbeb4f
commit 844cee07e8
1 changed files with 6 additions and 3 deletions

View File

@ -39,10 +39,13 @@ GDBWindow::GDBWindow(GDBController* controller, QWidget* parent)
connect(m_bindAddressEdit, SIGNAL(textChanged(const QString&)), this, SLOT(bindAddressChanged(const QString&))); connect(m_bindAddressEdit, SIGNAL(textChanged(const QString&)), this, SLOT(bindAddressChanged(const QString&)));
settingsGrid->addWidget(m_bindAddressEdit, 1, 1, Qt::AlignLeft); settingsGrid->addWidget(m_bindAddressEdit, 1, 1, Qt::AlignLeft);
m_startStopButton = new QPushButton(tr("Start")); m_startStopButton = new QPushButton;
connect(m_startStopButton, SIGNAL(clicked()), m_gdbController, SLOT(listen()));
connect(m_startStopButton, SIGNAL(clicked()), this, SLOT(started()));
mainSegment->addWidget(m_startStopButton); mainSegment->addWidget(m_startStopButton);
if (m_gdbController->isAttached()) {
started();
} else {
stopped();
}
} }
void GDBWindow::portChanged(const QString& portString) { void GDBWindow::portChanged(const QString& portString) {