gdbengine.h 18.9 KB
Newer Older
1
/**************************************************************************
con's avatar
con committed
2 3 4
**
** This file is part of Qt Creator
**
hjk's avatar
hjk committed
5
** Copyright (c) 2010 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"
ck's avatar
ck committed
36
#include "localgdbprocess.h"
37
#include "watchutils.h"
38

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

QT_BEGIN_NAMESPACE
53 54
class QMainWindow;
class QMessageBox;
55
class QTimer;
con's avatar
con committed
56 57 58
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;
ck's avatar
ck committed
63
class AbstractGdbProcess;
hjk's avatar
hjk committed
64
class GdbResponse;
con's avatar
con committed
65 66 67
class GdbMi;

class BreakpointData;
68
class WatchData;
69
class DisassemblerAgentCookie;
con's avatar
con committed
70

71 72
class AttachGdbAdapter;
class CoreGdbAdapter;
ck's avatar
ck committed
73 74
class LocalPlainGdbAdapter;
class RemoteGdbServerAdapter;
75
class TrkGdbAdapter;
76

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

85

con's avatar
con committed
86 87 88 89 90
class GdbEngine : public IDebuggerEngine
{
    Q_OBJECT

public:
91 92 93
    typedef QMultiMap<QString, int> GdbBinaryToolChainMap;
    typedef QSharedPointer<GdbBinaryToolChainMap> GdbBinaryToolChainMapPtr;

hjk's avatar
hjk committed
94
    explicit GdbEngine(DebuggerManager *manager);
con's avatar
con committed
95 96 97
    ~GdbEngine();

private:
98
    friend class AbstractGdbAdapter;
ck's avatar
ck committed
99
    friend class AbstractPlainGdbAdapter;
100 101
    friend class AttachGdbAdapter;
    friend class CoreGdbAdapter;
ck's avatar
ck committed
102
    friend class LocalPlainGdbAdapter;
103
    friend class TermGdbAdapter;
ck's avatar
ck committed
104 105
    friend class RemoteGdbServerAdapter;
    friend class RemotePlainGdbAdapter;
106
    friend class TrkGdbAdapter;
hjk's avatar
hjk committed
107

108
private: ////////// General Interface //////////
con's avatar
con committed
109

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

112 113
    virtual bool checkConfiguration(int toolChain, QString *errorMessage,
        QString *settingsPage = 0) const;
114
    virtual void startDebugger(const DebuggerStartParametersPtr &sp);
115
    virtual unsigned debuggerCapabilities() const;
116
    virtual void exitDebugger();
117
    virtual void abortDebugger();
118 119
    virtual void detachDebugger();
    virtual void shutdown();
con's avatar
con committed
120

121
    virtual void executeDebuggerCommand(const QString &command);
122
    virtual QString qtNamespace() const { return m_dumperHelper.qtNamespace(); }
con's avatar
con committed
123

124
private: ////////// General State //////////
con's avatar
con committed
125

126 127 128 129 130
    void initializeVariables();
    DebuggerStartMode startMode() const;
    const DebuggerStartParameters &startParameters() const
        { return *m_startParameters; }
    Q_SLOT void setAutoDerefPointers(const QVariant &on);
131

132
    DebuggerStartParametersPtr m_startParameters;
133
    bool m_registerNamesListed;
134

135
private: ////////// Gdb Process Management //////////
136

137 138
    AbstractGdbAdapter *createAdapter(const DebuggerStartParametersPtr &dp);
    void connectAdapter();
139 140 141
    bool startGdb(const QStringList &args = QStringList(),
                  const QString &gdb = QString(),
                  const QString &settingsIdHint = QString());
142
    void startInferiorPhase2();
143

Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
144 145 146
    void handleInferiorShutdown(const GdbResponse &response);
    void handleGdbExit(const GdbResponse &response);

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

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

158 159
    void handleInferiorPrepared();

160 161 162
    void handleInferiorStartFailed(const QString &msg);

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

164 165 166 167 168
private:
    QTextCodec *m_outputCodec;
    QTextCodec::ConverterState m_outputCodecState;

    QByteArray m_inbuffer;
169
    bool m_busy;
con's avatar
con committed
170

171 172 173 174
    AbstractGdbAdapter *m_gdbAdapter;

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

175
    public: // Otherwise the Qt flag macros are unhappy.
176 177
    enum GdbCommandFlag {
        NoFlags = 0,
178 179 180 181 182 183
        // 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,
184
        WatchUpdate = Discardable | RebuildWatchModel,
185 186 187 188 189 190 191 192 193 194
        // 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,
195 196
        // This command needs to be send immediately.
        Immediate = 256,
197 198
    };
    Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)
199
    private:
200

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

    struct GdbCommand
    {
hjk's avatar
hjk committed
208 209 210
        GdbCommand()
            : flags(0), callback(0), adapterCallback(0), callbackName(0)
        {}
211 212 213

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

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

249
    QHash<int, GdbCommand> m_cookieForToken;
250
    int commandTimeoutTime() const;
251
    QTimer *m_commandTimer;
con's avatar
con committed
252

253 254
    QByteArray m_pendingConsoleStreamOutput;
    QByteArray m_pendingLogStreamOutput;
255

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

261
    int m_pendingWatchRequests; // Watch updating commands in flight
262
    int m_pendingBreakpointRequests; // Watch updating commands in flight
hjk's avatar
hjk committed
263

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

268
    QList<GdbCommand> m_commandsToRunOnTemporaryBreak;
hjk's avatar
hjk committed
269
    int gdbVersion() const { return m_gdbVersion; }
270 271

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

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

hjk's avatar
hjk committed
280
    bool isSynchroneous() const { return hasPython(); }
281
    virtual bool hasPython() const;
282 283 284
    bool supportsThreads() const;

    // Gdb initialization sequence
hjk's avatar
hjk committed
285
    void handleShowVersion(const GdbResponse &response);
286
    void handleHasPython(const GdbResponse &response);
con's avatar
con committed
287

288
    int m_gdbVersion; // 6.8.0 is 60800
289
    int m_gdbBuildVersion; // MAC only?
290
    bool m_isMacGdb;
291
    bool m_hasPython;
hjk's avatar
hjk committed
292

293
private: ////////// Inferior Management //////////
294

295
    // This should be always the last call in a function.
296
    Q_SLOT virtual void attemptBreakpointSynchronization();
297

hjk's avatar
hjk committed
298 299 300 301 302
    virtual void executeStep();
    virtual void executeStepOut();
    virtual void executeNext();
    virtual void executeStepI();
    virtual void executeNextI();
con's avatar
con committed
303

304 305 306 307
    void continueInferiorInternal();
    void autoContinueInferior();
    virtual void continueInferior();
    virtual void interruptInferior();
308
    void interruptInferiorTemporarily();
con's avatar
con committed
309

hjk's avatar
hjk committed
310 311
    virtual void executeRunToLine(const QString &fileName, int lineNumber);
    virtual void executeRunToFunction(const QString &functionName);
312
//    void handleExecRunToFunction(const GdbResponse &response);
hjk's avatar
hjk committed
313 314
    virtual void executeJumpToLine(const QString &fileName, int lineNumber);
    virtual void executeReturn();
con's avatar
con committed
315

hjk's avatar
hjk committed
316 317 318 319
    void handleExecuteContinue(const GdbResponse &response);
    void handleExecuteStep(const GdbResponse &response);
    void handleExecuteNext(const GdbResponse &response);
    void handleExecuteReturn(const GdbResponse &response);
con's avatar
con committed
320

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

325
#ifdef Q_OS_LINUX
326 327
    void handleInfoProc(const GdbResponse &response);

328 329
    QByteArray m_entryPoint;
#endif
hjk's avatar
hjk committed
330
    QFutureInterface<void> *m_progress;
331

332 333 334 335 336 337
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
338 339 340 341

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

    //
    // Modules specific stuff
    //
361 362
    virtual void loadSymbols(const QString &moduleName);
    virtual void loadAllSymbols();
hjk's avatar
hjk committed
363
    virtual void requestModuleSymbols(const QString &moduleName);
364
    virtual void reloadModules();
365
    void reloadModulesInternal();
hjk's avatar
hjk committed
366
    void handleModulesList(const GdbResponse &response);
con's avatar
con committed
367

368
    bool m_modulesListOutdated;
con's avatar
con committed
369

370 371 372 373 374 375 376 377 378
    //
    // 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
379 380
    //
    // Register specific stuff
hjk's avatar
hjk committed
381
    //
382 383
    Q_SLOT virtual void reloadRegisters();
    virtual void setRegisterValue(int nr, const QString &value);
hjk's avatar
hjk committed
384 385
    void handleRegisterListNames(const GdbResponse &response);
    void handleRegisterListValues(const GdbResponse &response);
con's avatar
con committed
386

387 388 389
    //
    // Disassembler specific stuff
    //
390
    virtual void fetchDisassembler(DisassemblerViewAgent *agent);
391
    void fetchDisassemblerByAddress(const DisassemblerAgentCookie &ac,
392
        bool useMixedMode);
393
    void fetchDisassemblerByCli(const DisassemblerAgentCookie &ac,
394
        bool useMixedMode);
395
    void fetchDisassemblerByAddressCli(const DisassemblerAgentCookie &ac);
396
    void handleFetchDisassemblerByCli(const GdbResponse &response);
397 398 399 400 401
    void handleFetchDisassemblerByLine(const GdbResponse &response);
    void handleFetchDisassemblerByAddress1(const GdbResponse &response);
    void handleFetchDisassemblerByAddress0(const GdbResponse &response);
    QString parseDisassembler(const GdbMi &lines);

402 403
    //
    // Source file specific stuff
hjk's avatar
hjk committed
404
    //
405
    virtual void reloadSourceFiles();
406
    void reloadSourceFilesInternal();
407 408 409
    void handleQuerySources(const GdbResponse &response);

    QString fullName(const QString &fileName);
410 411 412 413 414
#ifdef Q_OS_WIN
    QString cleanupFullName(const QString &fileName);
#else
    QString cleanupFullName(const QString &fileName) { return fileName; }
#endif
415 416 417 418

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

420
    void invalidateSourcesList();
421 422
    bool m_sourcesListOutdated;
    bool m_sourcesListUpdating;
423
    bool m_breakListOutdated;
424

con's avatar
con committed
425 426
    //
    // Stack specific stuff
hjk's avatar
hjk committed
427
    //
428
    void updateAll();
429 430
        void updateAllClassic();
        void updateAllPython();
hjk's avatar
hjk committed
431 432
    void handleStackListFrames(const GdbResponse &response);
    void handleStackSelectThread(const GdbResponse &response);
433
    void handleStackSelectFrame(const GdbResponse &response);
hjk's avatar
hjk committed
434
    void handleStackListThreads(const GdbResponse &response);
hjk's avatar
hjk committed
435
    Q_SLOT void reloadStack(bool forceGotoLocation);
436
    Q_SLOT virtual void reloadFullStack();
437
    int currentFrame() const;
con's avatar
con committed
438

439 440
    QList<GdbMi> m_currentFunctionArgs;
    QString m_currentFrame;
con's avatar
con committed
441 442

    //
443
    // Watch specific stuff
hjk's avatar
hjk committed
444
    //
hjk's avatar
hjk committed
445 446
    virtual void setToolTipExpression(const QPoint &mousePos,
        TextEditor::ITextEditor *editor, int cursorPos);
con's avatar
con committed
447

448 449
    virtual void assignValueInDebugger(const QString &expr, const QString &value);

450 451
    virtual void fetchMemory(MemoryViewAgent *agent, QObject *token,
        quint64 addr, quint64 length);
452 453 454 455
    void handleFetchMemory(const GdbResponse &response);

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

    // FIXME: BaseClass. called to improve situation for a watch item
458
    void updateSubItemClassic(const WatchData &data);
con's avatar
con committed
459

460
    void virtual updateWatchData(const WatchData &data);
461
    Q_SLOT void updateWatchDataHelper(const WatchData &data);
462
    void rebuildWatchModel();
463
    bool showToolTip();
con's avatar
con committed
464 465 466

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

469 470
    void runDebuggingHelperClassic(const WatchData &data, bool dumpChildren);
    void runDirectDebuggingHelperClassic(const WatchData &data, bool dumpChildren);
471
    bool hasDebuggingHelperForType(const QString &type) const;
con's avatar
con committed
472

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

485 486 487
    Q_SLOT void createFullBacktrace();
    void handleCreateFullBacktrace(const GdbResponse &response);

488
    void updateLocals(const QVariant &cookie = QVariant());
489 490 491
        void updateLocalsClassic(const QVariant &cookie);
        void updateLocalsPython(const QByteArray &varList);
            void handleStackFramePython(const GdbResponse &response);
492

493 494 495
    void handleStackListLocalsClassic(const GdbResponse &response);
    void handleStackListLocalsPython(const GdbResponse &response);

496 497 498 499
    WatchData localVariable(const GdbMi &item,
                            const QStringList &uninitializedVariables,
                            QMap<QByteArray, int> *seen);
    void setLocals(const QList<GdbMi> &locals);
500
    void handleStackListArgumentsClassic(const GdbResponse &response);
con's avatar
con committed
501

502
    QSet<QByteArray> m_processedNames;
con's avatar
con committed
503

504
private: ////////// Dumper Management //////////
505 506
    QString qtDumperLibraryName() const;
    bool checkDebuggingHelpers();
507 508 509 510 511
        bool checkDebuggingHelpersClassic();
    void setDebuggingHelperStateClassic(DebuggingHelperState);
    void tryLoadDebuggingHelpersClassic();
    void tryQueryDebuggingHelpersClassic();
    Q_SLOT void recheckDebuggingHelperAvailabilityClassic();
512 513
    void connectDebuggingHelperActions();
    void disconnectDebuggingHelperActions();
514
    Q_SLOT void setDebugDebuggingHelpersClassic(const QVariant &on);
515
    Q_SLOT void setUseDebuggingHelpers(const QVariant &on);
516

517
    const GdbBinaryToolChainMapPtr m_gdbBinaryToolChainMap;
518 519
    DebuggingHelperState m_debuggingHelperState;
    QtDumperHelper m_dumperHelper;
520
    QString m_gdb;
521

522
private: ////////// Convenience Functions //////////
hjk's avatar
hjk committed
523

524
    QString errorMessage(QProcess::ProcessError error);
525 526
    QMessageBox *showMessageBox(int icon, const QString &title, const QString &text,
        int buttons = 0);
527
    void debugMessage(const QString &msg);
528
    QMainWindow *mainWindow() const;
ck's avatar
ck committed
529
    AbstractGdbProcess *gdbProc() const;
530

531 532 533
    static QString m_toolTipExpression;
    static QPoint m_toolTipPos;
    static QByteArray tooltipINameForExpression(const QByteArray &exp);
con's avatar
con committed
534 535 536 537 538
};

} // namespace Internal
} // namespace Debugger

539 540
Q_DECLARE_OPERATORS_FOR_FLAGS(Debugger::Internal::GdbEngine::GdbCommandFlags)

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