Skip to content

Commit 4737044

Browse files
Update FindRegrex file
1 parent 14edce8 commit 4737044

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

src/SeerGdbWidget.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ SeerGdbWidget::SeerGdbWidget (QWidget* parent) : QWidget(parent) {
134134
QObject::connect(_gdbMonitor, &GdbMonitor::astrixTextOutput, commandLogsWidget->watchpointsBrowser(), &SeerWatchpointsBrowserWidget::handleText);
135135
QObject::connect(_gdbMonitor, &GdbMonitor::astrixTextOutput, this, &SeerGdbWidget::handleText);
136136
QObject::connect(_gdbMonitor, &GdbMonitor::equalTextOutput, this, &SeerGdbWidget::handleText);
137+
QObject::connect(_gdbMonitor, &GdbMonitor::tildeTextOutput, this, &SeerGdbWidget::handleText);
137138
QObject::connect(_gdbMonitor, &GdbMonitor::caretTextOutput, this, &SeerGdbWidget::handleText);
138139

139140
QObject::connect(_gdbMonitor, &GdbMonitor::caretTextOutput, threadManagerWidget->threadFramesBrowserWidget(), &SeerThreadFramesBrowserWidget::handleText);
@@ -812,8 +813,8 @@ void SeerGdbWidget::handleText (const QString& text) {
812813
QString fullname_text = Seer::parseFirst(filename_entry, "fullname=", '"', '"', false);
813814

814815
// If that file is not in source browser, skip it
815-
// if (sourceLibraryManagerWidget->sourceBrowserWidget()->findFileWithRegrex(fullname_text).isEmpty())
816-
// continue;
816+
if (sourceLibraryManagerWidget->sourceBrowserWidget()->findFileWithRegrex(fullname_text).isEmpty())
817+
continue;
817818

818819
QString symbols_text = Seer::parseFirst(filename_entry, "symbols=", '[', ']', false);
819820
QStringList symbols_list = Seer::parse(symbols_text, "", '{', '}', false);
@@ -3946,4 +3947,12 @@ void SeerGdbWidget::syncFindTypeIdentifier (const QString& identifier)
39463947
void SeerGdbWidget::gdbFindVariableIdentifier(const QString& identifier)
39473948
{
39483949
handleGdbCommand("-symbol-info-variables --name " + identifier);
3949-
}
3950+
}
3951+
void SeerGdbWidget::gdbFindFunctionIdentifier (const QString& identifier)
3952+
{
3953+
handleGdbCommand("-symbol-info-functions --name " + identifier);
3954+
}
3955+
void SeerGdbWidget::gdbFindTypeIdentifier (const QString& identifier)
3956+
{
3957+
handleGdbCommand("-symbol-info-types --name " + identifier);
3958+
}

src/SeerGdbWidget.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ class SeerGdbWidget : public QWidget, protected Ui::SeerGdbWidgetForm {
373373

374374
void handleGdbGotoDefinition (const QString& identifier);
375375
void gdbFindVariableIdentifier (const QString& identifier);
376+
void gdbFindFunctionIdentifier (const QString& identifier);
377+
void gdbFindTypeIdentifier (const QString& identifier);
376378

377379
signals:
378380
void stoppingPointReached ();

src/SeerMainWindow.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,12 @@ SeerMainWindow::SeerMainWindow(QWidget* parent) : QMainWindow(parent) {
215215
QObject::connect(helpToolButton, &QToolButton::clicked, this, &SeerMainWindow::handleHelpToolButtonClicked);
216216

217217
QObject::connect(gdbWidget, &SeerGdbWidget::sessionTerminated, runStatus, &SeerRunStatusIndicator::handleSessionTerminated);
218+
handleRecordSettingsChanged();
218219

219220
// Connect Go to Definition signal/slot.
220221
QObject::connect(gdbWidget, &SeerGdbWidget::requestFindVariableIdentifier, gdbWidget, &SeerGdbWidget::gdbFindVariableIdentifier);
221-
QObject::connect(gdbWidget, &SeerGdbWidget::requestFindFunctionIdentifier, [this](const QString& identifier){ gdbWidget->handleGdbCommand(QString("-symbol-info-functions --name " + identifier)); });
222-
QObject::connect(gdbWidget, &SeerGdbWidget::requestFindTypeIdentifier, [this](const QString& identifier){ gdbWidget->handleGdbCommand(QString("-symbol-info-types --name " + identifier)); });
222+
QObject::connect(gdbWidget, &SeerGdbWidget::requestFindFunctionIdentifier, gdbWidget, &SeerGdbWidget::gdbFindFunctionIdentifier);
223+
QObject::connect(gdbWidget, &SeerGdbWidget::requestFindTypeIdentifier, gdbWidget, &SeerGdbWidget::gdbFindTypeIdentifier);
223224

224225
//
225226
// Initialize contents.

0 commit comments

Comments
 (0)