forked from qt-creator/qt-creator
Debugger[gdb]: Introduce new control for gdb binaries.
Manage binaries as a map of binary-><toolchain number>. Provide list widget and editing dialog with tooltip showing the version. Save in settings as a flat list of keys. Acked-by: hjk
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
#define DEBUGGER_ACTIONS_H
|
||||
|
||||
#include <QtCore/QHash>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QSharedPointer>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
@@ -49,9 +51,14 @@ class DebuggerSettings : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
DebuggerSettings(QObject *parent = 0);
|
||||
typedef QMultiMap<QString, int> GdbBinaryToolChainMap;
|
||||
typedef QSharedPointer<GdbBinaryToolChainMap> GdbBinaryToolChainMapPtr;
|
||||
|
||||
explicit DebuggerSettings(QObject *parent = 0);
|
||||
~DebuggerSettings();
|
||||
|
||||
GdbBinaryToolChainMapPtr gdbBinaryToolChainMap() const { return m_gdbBinaryToolChainMap; }
|
||||
|
||||
void insertItem(int code, Utils::SavedAction *item);
|
||||
Utils::SavedAction *item(int code) const;
|
||||
|
||||
@@ -65,6 +72,8 @@ public slots:
|
||||
|
||||
private:
|
||||
QHash<int, Utils::SavedAction *> m_items;
|
||||
|
||||
const GdbBinaryToolChainMapPtr m_gdbBinaryToolChainMap;
|
||||
};
|
||||
|
||||
|
||||
@@ -103,7 +112,6 @@ enum DebuggerActionCode
|
||||
RegisterForPostMortem,
|
||||
|
||||
// Gdb
|
||||
GdbLocation,
|
||||
GdbEnvironment,
|
||||
GdbScriptFile,
|
||||
ExecuteCommand,
|
||||
|
||||
Reference in New Issue
Block a user