forked from qt-creator/qt-creator
debugger: merge gdb engine and symbian engine.
The trk parts are an 'adapter' in the gdb engine.
This commit is contained in:
@@ -65,6 +65,10 @@ class GdbMi;
|
||||
class WatchData;
|
||||
class BreakpointData;
|
||||
|
||||
class PlainGdbAdapter;
|
||||
class TrkGdbAdapter;
|
||||
class RemoteGdbAdapter;
|
||||
|
||||
enum DebuggingHelperState
|
||||
{
|
||||
DebuggingHelperUninitialized,
|
||||
@@ -80,7 +84,6 @@ class GdbEngine : public IDebuggerEngine
|
||||
public:
|
||||
explicit GdbEngine(DebuggerManager *parent);
|
||||
~GdbEngine();
|
||||
void setGdbAdapter(AbstractGdbAdapter *adapter);
|
||||
|
||||
signals:
|
||||
void gdbInputAvailable(int channel, const QString &msg);
|
||||
@@ -155,7 +158,8 @@ private:
|
||||
bool supportsThreads() const;
|
||||
void gotoLocation(const StackFrame &frame, bool setLocationMarker);
|
||||
|
||||
void initializeConnections();
|
||||
void connectAdapter();
|
||||
void disconnectAdapter();
|
||||
void initializeVariables();
|
||||
QString fullName(const QString &fileName);
|
||||
// get one usable name out of these, try full names first
|
||||
@@ -439,8 +443,16 @@ private:
|
||||
DebuggerStartParametersPtr m_startParameters;
|
||||
// make sure to re-initialize new members in initializeVariables();
|
||||
|
||||
// only one of those is active at a given time
|
||||
PlainGdbAdapter *m_plainAdapter;
|
||||
TrkGdbAdapter *m_trkAdapter;
|
||||
RemoteGdbAdapter *m_remoteAdapter;
|
||||
|
||||
public:
|
||||
void showMessageBox(int icon, const QString &title, const QString &text);
|
||||
void debugMessage(const QString &msg);
|
||||
void addOptionPages(QList<Core::IOptionsPage*> *opts) const;
|
||||
|
||||
OutputCollector m_outputCollector;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user