update · epasveer/seer@2cc60d9 (original) (raw)
`@@ -423,6 +423,12 @@ SeerGdbWidget::SeerGdbWidget (QWidget* parent) : QWidget(parent) {
`
423
423
`QObject::connect(breakpointsSaveToolButton, &QToolButton::clicked, this, &SeerGdbWidget::handleGdbSaveBreakpoints);
`
424
424
`QObject::connect(helpToolButton, &QToolButton::clicked, this, &SeerGdbWidget::handleHelpToolButtonClicked);
`
425
425
``
``
426
`+
#if ENABLE_GDB_LOGOUT == 1
`
``
427
`+
// For debuging
`
``
428
`+
QObject::connect(this, &SeerGdbWidget::gdbCommandLogout, _gdbOutputLog, &SeerGdbLogWidget::handleText);
`
``
429
`+
QObject::connect(_gdbMonitor, &GdbMonitor::allTextOutput, _gdbOutputLog, &SeerGdbLogWidget::handleText);
`
``
430
`+
#endif
`
``
431
+
426
432
`// Restore window settings.
`
427
433
`readSettings();
`
428
434
`}
`
`@@ -1030,6 +1036,11 @@ void SeerGdbWidget::handleGdbCommand (const QString& command) {
`
1030
1036
``
1031
1037
` QByteArray bytes = str.toUtf8(); // 8-bit Unicode Transformation Format
`
1032
1038
``
``
1039
`+
#if ENABLE_GDB_LOGOUT == 1
`
``
1040
`+
// Broadcast this log. For debugging
`
``
1041
`+
emit gdbCommandLogout("From Widget:" + str);
`
``
1042
`+
#endif
`
``
1043
+
1033
1044
` _gdbProcess->write(bytes); // Send the data into the stdin stream of the bash child process
`
1034
1045
`}
`
1035
1046
``