aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/gdb/abstractplaingdbadapter.h
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-05-05 12:49:08 +0200
committerck <qt-info@nokia.com>2010-05-05 12:51:21 +0200
commitef7c5fae607e0684d01213ab10d91ab8ae41d4ec (patch)
treef0fba43ddcaa1d6d867c43154bcd3dd00fd06d2c /src/plugins/debugger/gdb/abstractplaingdbadapter.h
parenta945e96377cf0c8b72a96ce6de2bb5889abc62c2 (diff)
Debugger: Support running GDB over SSH.
Reviewed-by: hjk
Diffstat (limited to 'src/plugins/debugger/gdb/abstractplaingdbadapter.h')
-rw-r--r--src/plugins/debugger/gdb/abstractplaingdbadapter.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/plugins/debugger/gdb/abstractplaingdbadapter.h b/src/plugins/debugger/gdb/abstractplaingdbadapter.h
new file mode 100644
index 0000000000..9d6fddcc6e
--- /dev/null
+++ b/src/plugins/debugger/gdb/abstractplaingdbadapter.h
@@ -0,0 +1,62 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+**
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#ifndef ABSTRACTPLAINGDBADAPTER_H
+#define ABSTRACTPLAINGDBADAPTER_H
+
+#include "abstractgdbadapter.h"
+
+namespace Debugger {
+namespace Internal {
+
+class AbstractPlainGdbAdapter : public AbstractGdbAdapter
+{
+public:
+ AbstractPlainGdbAdapter(GdbEngine *engine, QObject *parent = 0);
+
+ virtual void startInferior();
+ virtual void startInferiorPhase2();
+
+protected:
+ void handleInfoTarget(const GdbResponse &response);
+
+private:
+ virtual QByteArray execFilePath() const = 0;
+ virtual bool infoTargetNecessary() const = 0;
+ virtual QByteArray toLocalEncoding(const QString &s) const = 0;
+ virtual QString fromLocalEncoding(const QByteArray &b) const = 0;
+ void handleExecRun(const GdbResponse &response);
+ void handleFileExecAndSymbols(const GdbResponse &response);
+
+};
+
+} // namespace Debugger
+} // namespace Internal
+
+#endif // ABSTRACTPLAINGDBADAPTER_H