mirror of
https://github.com/epasveer/seer.git
synced 2026-08-29 16:40:42 +08:00
Delete some dead code.
This commit is contained in:
@@ -666,36 +666,6 @@ QString SeerGdbWidget::gdbRecordDirection () const {
|
||||
return _gdbRecordDirection;
|
||||
}
|
||||
|
||||
void SeerGdbWidget::setDprintfStyle (const QString& style) {
|
||||
|
||||
_dprintfStyle = style;
|
||||
}
|
||||
|
||||
QString SeerGdbWidget::dprintfStyle () const {
|
||||
|
||||
return _dprintfStyle;
|
||||
}
|
||||
|
||||
void SeerGdbWidget::setDprintfFunction (const QString& function) {
|
||||
|
||||
_dprintfFunction = function;
|
||||
}
|
||||
|
||||
QString SeerGdbWidget::dprintfFunction () const {
|
||||
|
||||
return _dprintfFunction;
|
||||
}
|
||||
|
||||
void SeerGdbWidget::setDprintfChannel (const QString& channel) {
|
||||
|
||||
_dprintfChannel = channel;
|
||||
}
|
||||
|
||||
QString SeerGdbWidget::dprintfChannel () const {
|
||||
|
||||
return _dprintfChannel;
|
||||
}
|
||||
|
||||
SeerEditorManagerWidget* SeerGdbWidget::editorManager () {
|
||||
|
||||
return editorManagerWidget;
|
||||
@@ -976,9 +946,6 @@ void SeerGdbWidget::handleGdbRunExecutable (const QString& breakMode) {
|
||||
handleGdbSourceScripts();
|
||||
}
|
||||
|
||||
// Set dprint parameters.
|
||||
resetDprintf();
|
||||
|
||||
// Create a new console.
|
||||
// Set the program's tty device for stdin and stdout.
|
||||
createConsole();
|
||||
@@ -1113,9 +1080,6 @@ void SeerGdbWidget::handleGdbAttachExecutable () {
|
||||
handleGdbSourceScripts();
|
||||
}
|
||||
|
||||
// Set dprint parameters.
|
||||
resetDprintf();
|
||||
|
||||
// No console for 'attach' mode.
|
||||
setExecutableLaunchMode("attach");
|
||||
setGdbRecordMode("");
|
||||
@@ -1189,9 +1153,6 @@ void SeerGdbWidget::handleGdbConnectExecutable () {
|
||||
handleGdbSourceScripts();
|
||||
}
|
||||
|
||||
// Set dprint parameters.
|
||||
resetDprintf();
|
||||
|
||||
// No console for 'connect' mode.
|
||||
setExecutableLaunchMode("connect");
|
||||
setGdbRecordMode("");
|
||||
@@ -1287,9 +1248,6 @@ void SeerGdbWidget::handleGdbRRExecutable () {
|
||||
}
|
||||
}
|
||||
|
||||
// Set dprint parameters.
|
||||
resetDprintf();
|
||||
|
||||
// Set the launch mode.
|
||||
setExecutableLaunchMode("rr");
|
||||
setGdbRecordMode("rr");
|
||||
@@ -1403,9 +1361,6 @@ void SeerGdbWidget::handleGdbCoreFileExecutable () {
|
||||
handleGdbSourceScripts();
|
||||
}
|
||||
|
||||
// Set dprint parameters.
|
||||
resetDprintf();
|
||||
|
||||
// No console for 'core' mode.
|
||||
setExecutableLaunchMode("corefile");
|
||||
setGdbRecordMode("");
|
||||
@@ -3113,17 +3068,6 @@ void SeerGdbWidget::readSettings () {
|
||||
} settings.endGroup();
|
||||
}
|
||||
|
||||
void SeerGdbWidget::resetDprintf () {
|
||||
|
||||
if (isGdbRuning() == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
handleGdbCommand("-gdb-set dprintf-style " + dprintfStyle());
|
||||
handleGdbCommand("-gdb-set dprintf-function " + dprintfFunction());
|
||||
handleGdbCommand("-gdb-set dprintf-channel " + dprintfChannel());
|
||||
}
|
||||
|
||||
bool SeerGdbWidget::isGdbRuning () const {
|
||||
|
||||
if (_gdbProcess->state() == QProcess::NotRunning) {
|
||||
|
||||
@@ -107,15 +107,6 @@ class SeerGdbWidget : public QWidget, protected Ui::SeerGdbWidgetForm {
|
||||
void setGdbRecordDirection (const QString& direction);
|
||||
QString gdbRecordDirection () const;
|
||||
|
||||
void setDprintfStyle (const QString& style);
|
||||
QString dprintfStyle () const;
|
||||
|
||||
void setDprintfFunction (const QString& function);
|
||||
QString dprintfFunction () const;
|
||||
|
||||
void setDprintfChannel (const QString& channel);
|
||||
QString dprintfChannel () const;
|
||||
|
||||
void setConsoleMode (const QString& mode);
|
||||
QString consoleMode () const;
|
||||
|
||||
@@ -202,9 +193,6 @@ class SeerGdbWidget : public QWidget, protected Ui::SeerGdbWidgetForm {
|
||||
void writeSettings ();
|
||||
void readSettings ();
|
||||
|
||||
// Printpoints
|
||||
void resetDprintf ();
|
||||
|
||||
public slots:
|
||||
void handleLogsTabMoved (int from, int to);
|
||||
void handleLogsTabChanged (int index);
|
||||
@@ -383,9 +371,6 @@ class SeerGdbWidget : public QWidget, protected Ui::SeerGdbWidgetForm {
|
||||
bool _gdbEnablePrettyPrinting;
|
||||
QString _gdbRecordMode;
|
||||
QString _gdbRecordDirection;
|
||||
QString _dprintfStyle;
|
||||
QString _dprintfFunction;
|
||||
QString _dprintfChannel;
|
||||
bool _assemblyShowAssemblyTabOnStartup;
|
||||
QString _assemblyDisassemblyFlavor;
|
||||
QString _assemblySymbolDemangling;
|
||||
|
||||
@@ -333,8 +333,8 @@
|
||||
<string>...</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset>
|
||||
<normaloff>resources/RelaxLightIcons/help-about.svg</normaloff>resources/RelaxLightIcons/help-about.svg</iconset>
|
||||
<iconset resource="resource.qrc">
|
||||
<normaloff>:/seer/resources/RelaxLightIcons/help-about.svg</normaloff>:/seer/resources/RelaxLightIcons/help-about.svg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -410,7 +410,9 @@
|
||||
<tabstop>dprintfFunctionLineEdit</tabstop>
|
||||
<tabstop>dprintfChannelLineEdit</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="resource.qrc"/>
|
||||
</resources>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
|
||||
Reference in New Issue
Block a user