gdbengine.h 19.3 KB
Newer Older
1
/**************************************************************************
con's avatar
con committed
2
3
4
**
** This file is part of Qt Creator
**
5
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
con's avatar
con committed
6
**
7
** Contact: Nokia Corporation (qt-info@nokia.com)
con's avatar
con committed
8
**
9
** Commercial Usage
10
**
11
12
13
14
** 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.
15
**
16
** GNU Lesser General Public License Usage
17
**
18
19
20
21
22
23
** 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.
24
**
25
** If you are unsure which license is appropriate for your use, please
hjk's avatar
hjk committed
26
** contact the sales department at http://qt.nokia.com/contact.
con's avatar
con committed
27
**
28
**************************************************************************/
hjk's avatar
hjk committed
29

con's avatar
con committed
30
31
32
#ifndef DEBUGGER_GDBENGINE_H
#define DEBUGGER_GDBENGINE_H

33
#include "idebuggerengine.h"
hjk's avatar
hjk committed
34
#include "debuggermanager.h" // only for StartParameters
35
#include "gdbmi.h"
36
#include "watchutils.h"
37

con's avatar
con committed
38
39
40
41
42
43
#include <QtCore/QByteArray>
#include <QtCore/QHash>
#include <QtCore/QMap>
#include <QtCore/QObject>
#include <QtCore/QProcess>
#include <QtCore/QPoint>
hjk's avatar
hjk committed
44
#include <QtCore/QSet>
45
#include <QtCore/QTextCodec>
46
#include <QtCore/QTime>
con's avatar
con committed
47
48
49
50
#include <QtCore/QVariant>

QT_BEGIN_NAMESPACE
class QAbstractItemModel;
51
52
53
class QAction;
class QMainWindow;
class QMessageBox;
54
class QTimer;
con's avatar
con committed
55
56
57
58
class QWidget;
QT_END_NAMESPACE

namespace Debugger {
59
class DebuggerManager;
con's avatar
con committed
60
61
namespace Internal {

hjk's avatar
hjk committed
62
class AbstractGdbAdapter;
hjk's avatar
hjk committed
63
class GdbResponse;
con's avatar
con committed
64
65
66
class GdbMi;

class BreakpointData;
67
class WatchData;
con's avatar
con committed
68

69
70
class AttachGdbAdapter;
class CoreGdbAdapter;
71
72
class PlainGdbAdapter;
class RemoteGdbAdapter;
73
class TrkGdbAdapter;
74
struct TrkOptions;
75

76
enum DebuggingHelperState
con's avatar
con committed
77
{
78
79
80
81
    DebuggingHelperUninitialized,
    DebuggingHelperLoadTried,
    DebuggingHelperAvailable,
    DebuggingHelperUnavailable,
con's avatar
con committed
82
83
84
85
86
87
88
};

class GdbEngine : public IDebuggerEngine
{
    Q_OBJECT

public:
hjk's avatar
hjk committed
89
    explicit GdbEngine(DebuggerManager *manager);
con's avatar
con committed
90
91
92
    ~GdbEngine();

private:
93
    friend class AbstractGdbAdapter;
94
95
    friend class AttachGdbAdapter;
    friend class CoreGdbAdapter;
hjk's avatar
hjk committed
96
    friend class PlainGdbAdapter;
97
    friend class TermGdbAdapter;
98
    friend class RemoteGdbAdapter;
99
    friend class TrkGdbAdapter;
hjk's avatar
hjk committed
100

101
private: ////////// General Interface //////////
con's avatar
con committed
102

103
    virtual void addOptionPages(QList<Core::IOptionsPage*> *opts) const;
con's avatar
con committed
104

105
106
    virtual bool checkConfiguration(int toolChain, QString *errorMessage,
        QString *settingsPage = 0) const;
107
    virtual void startDebugger(const DebuggerStartParametersPtr &sp);
108
    virtual unsigned debuggerCapabilities() const;
109
110
111
    virtual void exitDebugger();
    virtual void detachDebugger();
    virtual void shutdown();
con's avatar
con committed
112

113
    virtual void executeDebuggerCommand(const QString &command);
114
    virtual QString qtNamespace() const { return m_dumperHelper.qtNamespace(); }
con's avatar
con committed
115

116
private: ////////// General State //////////
con's avatar
con committed
117

118
119
120
121
122
    void initializeVariables();
    DebuggerStartMode startMode() const;
    const DebuggerStartParameters &startParameters() const
        { return *m_startParameters; }
    Q_SLOT void setAutoDerefPointers(const QVariant &on);
123

124
125
    DebuggerStartParametersPtr m_startParameters;
    QSharedPointer<TrkOptions> m_trkOptions;
126
    bool m_registerNamesListed;
127

128
private: ////////// Gdb Process Management //////////
129

130
131
    AbstractGdbAdapter *createAdapter(const DebuggerStartParametersPtr &dp);
    void connectAdapter();
132
133
134
    bool startGdb(const QStringList &args = QStringList(),
                  const QString &gdb = QString(),
                  const QString &settingsIdHint = QString());
135
    void startInferiorPhase2();
136

Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
137
138
139
    void handleInferiorShutdown(const GdbResponse &response);
    void handleGdbExit(const GdbResponse &response);

140
141
142
143
    void showDebuggerInput(int channel, const QString &msg)
        { m_manager->showDebuggerInput(channel, msg); }
    void showDebuggerOutput(int channel, const QString &msg)
        { m_manager->showDebuggerOutput(channel, msg); }
144

145
private slots:
Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
146
147
    void handleGdbFinished(int, QProcess::ExitStatus status);
    void handleGdbError(QProcess::ProcessError error);
148
149
150
    void readGdbStandardOutput();
    void readGdbStandardError();
    void readDebugeeOutput(const QByteArray &data);
con's avatar
con committed
151

152
    void handleAdapterStarted();
153
154
    void handleAdapterStartFailed(const QString &msg,
        const QString &settingsIdHint = QString());
con's avatar
con committed
155

156
157
    void handleInferiorPrepared();

158
159
160
    void handleInferiorStartFailed(const QString &msg);

    void handleAdapterCrashed(const QString &msg);
con's avatar
con committed
161

162
163
164
165
166
private:
    QTextCodec *m_outputCodec;
    QTextCodec::ConverterState m_outputCodecState;

    QByteArray m_inbuffer;
167
    bool m_busy;
con's avatar
con committed
168

Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
169
    QProcess m_gdbProc;
170
171
172
173
    AbstractGdbAdapter *m_gdbAdapter;

private: ////////// Gdb Command Management //////////

174
    public: // Otherwise the Qt flag macros are unhappy.
175
176
    enum GdbCommandFlag {
        NoFlags = 0,
177
178
179
180
181
182
        // The command needs a stopped inferior.
        NeedsStop = 1, 
        // No need to wait for the reply before continuing inferior.
        Discardable = 2,
        // Trigger watch model rebuild when no such commands are pending anymore.
        RebuildWatchModel = 4,
183
        WatchUpdate = Discardable | RebuildWatchModel,
184
185
186
187
188
189
190
191
192
193
        // We can live without recieving an answer.
        NonCriticalResponse = 8,
        // Callback expects GdbResultRunning instead of GdbResultDone.
        RunRequest = 16,
        // Callback expects GdbResultExit instead of GdbResultDone.
        ExitRequest = 32,
        // Auto-set inferior shutdown related states.
        LosesChild = 64,
        // Trigger breakpoint model rebuild when no such commands are pending anymore.
        RebuildBreakpointModel = 128,
194
195
    };
    Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)
196
    private:
197

hjk's avatar
hjk committed
198
    typedef void (GdbEngine::*GdbCommandCallback)
hjk's avatar
hjk committed
199
        (const GdbResponse &response);
hjk's avatar
hjk committed
200
    typedef void (AbstractGdbAdapter::*AdapterCallback)
hjk's avatar
hjk committed
201
        (const GdbResponse &response);
202
203
204

    struct GdbCommand
    {
hjk's avatar
hjk committed
205
206
207
        GdbCommand()
            : flags(0), callback(0), adapterCallback(0), callbackName(0)
        {}
208
209
210

        int flags;
        GdbCommandCallback callback;
hjk's avatar
hjk committed
211
        AdapterCallback adapterCallback;
212
        const char *callbackName;
213
        QByteArray command;
214
        QVariant cookie;
215
        QTime postTime;
216
217
    };

218
    // Type and cookie are sender-internal data, opaque for the "event
con's avatar
con committed
219
    // queue". resultNeeded == true increments m_pendingResults on
hjk's avatar
hjk committed
220
    // send and decrements on receipt, effectively preventing
con's avatar
con committed
221
    // watch model updates before everything is finished.
hjk's avatar
hjk committed
222
    void flushCommand(const GdbCommand &cmd);
223
    void postCommand(const QByteArray &command,
224
225
226
227
                     GdbCommandFlags flags,
                     GdbCommandCallback callback = 0,
                     const char *callbackName = 0,
                     const QVariant &cookie = QVariant());
228
    void postCommand(const QByteArray &command,
229
230
231
                     GdbCommandCallback callback = 0,
                     const char *callbackName = 0,
                     const QVariant &cookie = QVariant());
232
    void postCommand(const QByteArray &command,
hjk's avatar
hjk committed
233
234
235
                     AdapterCallback callback,
                     const char *callbackName,
                     const QVariant &cookie = QVariant());
236
    void postCommand(const QByteArray &command,
237
238
239
240
                     GdbCommandFlags flags,
                     AdapterCallback callback,
                     const char *callbackName,
                     const QVariant &cookie = QVariant());
hjk's avatar
hjk committed
241
    void postCommandHelper(const GdbCommand &cmd);
242
    void flushQueuedCommands();
243
    Q_SLOT void commandTimeout();
con's avatar
con committed
244
245
    void setTokenBarrier();

246
    QHash<int, GdbCommand> m_cookieForToken;
247
    int commandTimeoutTime() const;
248
    QTimer *m_commandTimer;
con's avatar
con committed
249

250
251
    QByteArray m_pendingConsoleStreamOutput;
    QByteArray m_pendingLogStreamOutput;
252

253
    // This contains the first token number for the current round
254
255
256
    // of evaluation. Responses with older tokens are considers
    // out of date and discarded.
    int m_oldestAcceptableToken;
con's avatar
con committed
257

258
    int m_pendingWatchRequests; // Watch updating commands in flight
259
    int m_pendingBreakpointRequests; // Watch updating commands in flight
hjk's avatar
hjk committed
260

261
    typedef void (GdbEngine::*CommandsDoneCallback)();
262
    // This function is called after all previous responses have been received.
263
    CommandsDoneCallback m_commandsDoneCallback;
hjk's avatar
hjk committed
264

265
    QList<GdbCommand> m_commandsToRunOnTemporaryBreak;
hjk's avatar
hjk committed
266
    int gdbVersion() const { return m_gdbVersion; }
267
268

private: ////////// Gdb Output, State & Capability Handling //////////
hjk's avatar
hjk committed
269

270
    void handleResponse(const QByteArray &buff);
271
    void handleStopResponse(const GdbMi &data);
272
    void handleResultRecord(GdbResponse *response);
hjk's avatar
hjk committed
273
    void handleStop1(const GdbResponse &response);
274
    void handleStop1(const GdbMi &data);
275
276
    StackFrame parseStackFrame(const GdbMi &mi, int level);

hjk's avatar
hjk committed
277
    bool isSynchroneous() const { return hasPython(); }
278
    virtual bool hasPython() const;
279
280
281
    bool supportsThreads() const;

    // Gdb initialization sequence
hjk's avatar
hjk committed
282
    void handleShowVersion(const GdbResponse &response);
283
    void handleHasPython(const GdbResponse &response);
con's avatar
con committed
284

285
    int m_gdbVersion; // 6.8.0 is 60800
286
    int m_gdbBuildVersion; // MAC only?
287
    bool m_isMacGdb;
288
    bool m_hasPython;
hjk's avatar
hjk committed
289

290
private: ////////// Inferior Management //////////
291

292
    // This should be always the last call in a function.
293
    Q_SLOT virtual void attemptBreakpointSynchronization();
294

295
296
297
298
299
    virtual void stepExec();
    virtual void stepOutExec();
    virtual void nextExec();
    virtual void stepIExec();
    virtual void nextIExec();
con's avatar
con committed
300

301
302
303
304
    void continueInferiorInternal();
    void autoContinueInferior();
    virtual void continueInferior();
    virtual void interruptInferior();
305
    void interruptInferiorTemporarily();
con's avatar
con committed
306

307
308
309
310
    virtual void runToLineExec(const QString &fileName, int lineNumber);
    virtual void runToFunctionExec(const QString &functionName);
//    void handleExecRunToFunction(const GdbResponse &response);
    virtual void jumpToLineExec(const QString &fileName, int lineNumber);
311
    virtual void returnExec();
con's avatar
con committed
312

313
    void handleExecContinue(const GdbResponse &response);
314
315
    void handleExecStep(const GdbResponse &response);
    void handleExecNext(const GdbResponse &response);
316
    void handleExecReturn(const GdbResponse &response);
con's avatar
con committed
317

318
319
320
    qint64 inferiorPid() const { return m_manager->inferiorPid(); }
    void handleInferiorPidChanged(qint64 pid) { manager()->notifyInferiorPidChanged(pid); }
    void maybeHandleInferiorPidChanged(const QString &pid);
con's avatar
con committed
321

322
#ifdef Q_OS_LINUX
323
324
    void handleInfoProc(const GdbResponse &response);

325
326
327
    QByteArray m_entryPoint;
#endif

328
329
330
331
332
333
private: ////////// View & Data Stuff //////////

    virtual void selectThread(int index);
    virtual void activateFrame(int index);

    void gotoLocation(const StackFrame &frame, bool setLocationMarker);
con's avatar
con committed
334
335
336
337

    //
    // Breakpoint specific stuff
    //
hjk's avatar
hjk committed
338
    void handleBreakList(const GdbResponse &response);
con's avatar
con committed
339
    void handleBreakList(const GdbMi &table);
hjk's avatar
hjk committed
340
341
    void handleBreakIgnore(const GdbResponse &response);
    void handleBreakInsert1(const GdbResponse &response);
342
    void handleBreakInsert2(const GdbResponse &response);
hjk's avatar
hjk committed
343
344
    void handleBreakCondition(const GdbResponse &response);
    void handleBreakInfo(const GdbResponse &response);
con's avatar
con committed
345
346
    void extractDataFromInfoBreak(const QString &output, BreakpointData *data);
    void breakpointDataFromOutput(BreakpointData *data, const GdbMi &bkpt);
347
    QByteArray breakpointLocation(int index);
con's avatar
con committed
348
    void sendInsertBreakpoint(int index);
349
    QString breakLocation(const QString &file) const;
350
    void reloadBreakListInternal();
con's avatar
con committed
351
352
353
354

    //
    // Modules specific stuff
    //
355
356
357
    virtual void loadSymbols(const QString &moduleName);
    virtual void loadAllSymbols();
    virtual QList<Symbol> moduleSymbols(const QString &moduleName);
358
    virtual void reloadModules();
359
    void reloadModulesInternal();
hjk's avatar
hjk committed
360
    void handleModulesList(const GdbResponse &response);
con's avatar
con committed
361

362
    bool m_modulesListOutdated;
con's avatar
con committed
363

364
365
366
367
368
369
370
371
372
    //
    // Snapshot specific stuff
    //
    virtual void makeSnapshot();
    void handleMakeSnapshot(const GdbResponse &response);
    void handleActivateSnapshot(const GdbResponse &response);
    void activateSnapshot(int index);
    void activateSnapshot2();

con's avatar
con committed
373
374
    //
    // Register specific stuff
hjk's avatar
hjk committed
375
    //
376
377
    Q_SLOT virtual void reloadRegisters();
    virtual void setRegisterValue(int nr, const QString &value);
hjk's avatar
hjk committed
378
379
    void handleRegisterListNames(const GdbResponse &response);
    void handleRegisterListValues(const GdbResponse &response);
con's avatar
con committed
380

381
382
383
    //
    // Disassembler specific stuff
    //
384
    virtual void fetchDisassembler(DisassemblerViewAgent *agent);
385
386
    void fetchDisassemblerByAddress(DisassemblerViewAgent *agent,
        bool useMixedMode);
387
388
389
390
    void fetchDisassemblerByCli(DisassemblerViewAgent *agent,
        bool useMixedMode);
    void fetchDisassemblerByAddressCli(DisassemblerViewAgent *agent);
    void handleFetchDisassemblerByCli(const GdbResponse &response);
391
392
393
394
395
    void handleFetchDisassemblerByLine(const GdbResponse &response);
    void handleFetchDisassemblerByAddress1(const GdbResponse &response);
    void handleFetchDisassemblerByAddress0(const GdbResponse &response);
    QString parseDisassembler(const GdbMi &lines);

396
397
    //
    // Source file specific stuff
hjk's avatar
hjk committed
398
    //
399
    virtual void reloadSourceFiles();
400
    void reloadSourceFilesInternal();
401
402
403
    void handleQuerySources(const GdbResponse &response);

    QString fullName(const QString &fileName);
404
405
406
407
408
#ifdef Q_OS_WIN
    QString cleanupFullName(const QString &fileName);
#else
    QString cleanupFullName(const QString &fileName) { return fileName; }
#endif
409
410
411
412

    // awful hack to keep track of used files
    QMap<QString, QString> m_shortToFullName;
    QMap<QString, QString> m_fullToShortName;
con's avatar
con committed
413

414
    void invalidateSourcesList();
415
416
    bool m_sourcesListOutdated;
    bool m_sourcesListUpdating;
417
    bool m_breakListOutdated;
418

con's avatar
con committed
419
420
    //
    // Stack specific stuff
hjk's avatar
hjk committed
421
    //
422
    void updateAll();
423
424
        void updateAllClassic();
        void updateAllPython();
hjk's avatar
hjk committed
425
426
427
    void handleStackListFrames(const GdbResponse &response);
    void handleStackSelectThread(const GdbResponse &response);
    void handleStackListThreads(const GdbResponse &response);
hjk's avatar
hjk committed
428
    Q_SLOT void reloadStack(bool forceGotoLocation);
429
    Q_SLOT virtual void reloadFullStack();
430
    int currentFrame() const;
con's avatar
con committed
431

432
433
    QList<GdbMi> m_currentFunctionArgs;
    QString m_currentFrame;
con's avatar
con committed
434
435

    //
436
    // Watch specific stuff
hjk's avatar
hjk committed
437
    //
hjk's avatar
hjk committed
438
439
    virtual void setToolTipExpression(const QPoint &mousePos,
        TextEditor::ITextEditor *editor, int cursorPos);
con's avatar
con committed
440

441
442
    virtual void assignValueInDebugger(const QString &expr, const QString &value);

443
444
    virtual void fetchMemory(MemoryViewAgent *agent, QObject *token,
        quint64 addr, quint64 length);
445
446
447
448
    void handleFetchMemory(const GdbResponse &response);

    virtual void watchPoint(const QPoint &);
    void handleWatchPoint(const GdbResponse &response);
con's avatar
con committed
449
450

    // FIXME: BaseClass. called to improve situation for a watch item
451
    void updateSubItemClassic(const WatchData &data);
452
453
    void handleChildren(const WatchData &parent, const GdbMi &child,
        QList<WatchData> *insertions);
con's avatar
con committed
454

455
    void virtual updateWatchData(const WatchData &data);
456
    Q_SLOT void updateWatchDataHelper(const WatchData &data);
457
    void rebuildWatchModel();
458
    bool showToolTip();
con's avatar
con committed
459
460
461

    void insertData(const WatchData &data);
    void sendWatchParameters(const QByteArray &params0);
462
    void createGdbVariableClassic(const WatchData &data);
con's avatar
con committed
463

464
465
    void runDebuggingHelperClassic(const WatchData &data, bool dumpChildren);
    void runDirectDebuggingHelperClassic(const WatchData &data, bool dumpChildren);
466
    bool hasDebuggingHelperForType(const QString &type) const;
con's avatar
con committed
467

468
469
    void handleVarListChildrenClassic(const GdbResponse &response);
    void handleVarListChildrenHelperClassic(const GdbMi &child,
470
        const WatchData &parent);
hjk's avatar
hjk committed
471
472
    void handleVarCreate(const GdbResponse &response);
    void handleVarAssign(const GdbResponse &response);
473
    void handleEvaluateExpressionClassic(const GdbResponse &response);
474
475
476
    void handleQueryDebuggingHelperClassic(const GdbResponse &response);
    void handleDebuggingHelperValue2Classic(const GdbResponse &response);
    void handleDebuggingHelperValue3Classic(const GdbResponse &response);
hjk's avatar
hjk committed
477
478
    void handleDebuggingHelperEditValue(const GdbResponse &response);
    void handleDebuggingHelperSetup(const GdbResponse &response);
479
480

    void updateLocals(const QVariant &cookie = QVariant());
481
482
483
        void updateLocalsClassic(const QVariant &cookie);
        void updateLocalsPython(const QByteArray &varList);
            void handleStackFramePython(const GdbResponse &response);
484

485
486
487
    void handleStackListLocalsClassic(const GdbResponse &response);
    void handleStackListLocalsPython(const GdbResponse &response);

488
489
490
491
    WatchData localVariable(const GdbMi &item,
                            const QStringList &uninitializedVariables,
                            QMap<QByteArray, int> *seen);
    void setLocals(const QList<GdbMi> &locals);
492
    void handleStackListArgumentsClassic(const GdbResponse &response);
con's avatar
con committed
493
    void setWatchDataType(WatchData &data, const GdbMi &mi);
494
    void setWatchDataDisplayedType(WatchData &data, const GdbMi &mi);
con's avatar
con committed
495

496
    QSet<QByteArray> m_processedNames;
con's avatar
con committed
497
498
    QMap<QString, QString> m_varToType;

499
private: ////////// Dumper Management //////////
500
501
    QString qtDumperLibraryName() const;
    bool checkDebuggingHelpers();
502
503
504
505
506
        bool checkDebuggingHelpersClassic();
    void setDebuggingHelperStateClassic(DebuggingHelperState);
    void tryLoadDebuggingHelpersClassic();
    void tryQueryDebuggingHelpersClassic();
    Q_SLOT void recheckDebuggingHelperAvailabilityClassic();
507
508
    void connectDebuggingHelperActions();
    void disconnectDebuggingHelperActions();
509
    Q_SLOT void setDebugDebuggingHelpersClassic(const QVariant &on);
510
    Q_SLOT void setUseDebuggingHelpers(const QVariant &on);
511

512
513
    DebuggingHelperState m_debuggingHelperState;
    QtDumperHelper m_dumperHelper;
514

515
private: ////////// Convenience Functions //////////
hjk's avatar
hjk committed
516

517
    QString errorMessage(QProcess::ProcessError error);
518
519
    QMessageBox *showMessageBox(int icon, const QString &title, const QString &text,
        int buttons = 0);
520
    void debugMessage(const QString &msg);
521
    QMainWindow *mainWindow() const;
522

523
524
525
    static QString m_toolTipExpression;
    static QPoint m_toolTipPos;
    static QByteArray tooltipINameForExpression(const QByteArray &exp);
526
527
528
529
530
531
532
533
534
535
536

    static void setWatchDataValue(WatchData &data, const GdbMi &mi,
        int encoding = 0);
    static void setWatchDataEditValue(WatchData &data, const GdbMi &mi);
    static void setWatchDataValueToolTip(WatchData &data, const GdbMi &mi,
            int encoding = 0);
    static void setWatchDataChildCount(WatchData &data, const GdbMi &mi);
    static void setWatchDataValueEnabled(WatchData &data, const GdbMi &mi);
    static void setWatchDataValueEditable(WatchData &data, const GdbMi &mi);
    static void setWatchDataExpression(WatchData &data, const GdbMi &mi);
    static void setWatchDataAddress(WatchData &data, const GdbMi &mi);
537
    static void setWatchDataAddressHelper(WatchData &data, const QByteArray &addr);
538
    static void setWatchDataSAddress(WatchData &data, const GdbMi &mi);
con's avatar
con committed
539
540
541
542
543
};

} // namespace Internal
} // namespace Debugger

544
545
Q_DECLARE_OPERATORS_FOR_FLAGS(Debugger::Internal::GdbEngine::GdbCommandFlags)

con's avatar
con committed
546
#endif // DEBUGGER_GDBENGINE_H