gdbengine.h 19.3 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"
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
#include <QtCore/QVariant>

QT_BEGIN_NAMESPACE
50 51
class QMainWindow;
class QMessageBox;
52
class QTimer;
con's avatar
con committed
53 54 55
QT_END_NAMESPACE

namespace Debugger {
56
class DebuggerManager;
con's avatar
con committed
57 58
namespace Internal {

hjk's avatar
hjk committed
59
class AbstractGdbAdapter;
hjk's avatar
hjk committed
60
class GdbResponse;
con's avatar
con committed
61 62 63
class GdbMi;

class BreakpointData;
64
class WatchData;
con's avatar
con committed
65

66 67
class AttachGdbAdapter;
class CoreGdbAdapter;
68 69
class PlainGdbAdapter;
class RemoteGdbAdapter;
70
class TrkGdbAdapter;
71
struct TrkOptions;
72

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

class GdbEngine : public IDebuggerEngine
{
    Q_OBJECT

public:
hjk's avatar
hjk committed
86
    explicit GdbEngine(DebuggerManager *manager);
con's avatar
con committed
87 88 89
    ~GdbEngine();

private:
90
    friend class AbstractGdbAdapter;
91 92
    friend class AttachGdbAdapter;
    friend class CoreGdbAdapter;
hjk's avatar
hjk committed
93
    friend class PlainGdbAdapter;
94
    friend class TermGdbAdapter;
95
    friend class RemoteGdbAdapter;
96
    friend class TrkGdbAdapter;
hjk's avatar
hjk committed
97

98
private: ////////// General Interface //////////
con's avatar
con committed
99

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

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

110
    virtual void executeDebuggerCommand(const QString &command);
111
    virtual QString qtNamespace() const { return m_dumperHelper.qtNamespace(); }
con's avatar
con committed
112

113
private: ////////// General State //////////
con's avatar
con committed
114

115 116 117 118 119
    void initializeVariables();
    DebuggerStartMode startMode() const;
    const DebuggerStartParameters &startParameters() const
        { return *m_startParameters; }
    Q_SLOT void setAutoDerefPointers(const QVariant &on);
120

121 122
    DebuggerStartParametersPtr m_startParameters;
    QSharedPointer<TrkOptions> m_trkOptions;
123
    bool m_registerNamesListed;
124

125
private: ////////// Gdb Process Management //////////
126

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

Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
134 135 136
    void handleInferiorShutdown(const GdbResponse &response);
    void handleGdbExit(const GdbResponse &response);

137 138 139 140
    void showDebuggerInput(int channel, const QString &msg)
        { m_manager->showDebuggerInput(channel, msg); }
    void showDebuggerOutput(int channel, const QString &msg)
        { m_manager->showDebuggerOutput(channel, msg); }
141

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

149
    void handleAdapterStarted();
150 151
    void handleAdapterStartFailed(const QString &msg,
        const QString &settingsIdHint = QString());
con's avatar
con committed
152

153 154
    void handleInferiorPrepared();

155 156 157
    void handleInferiorStartFailed(const QString &msg);

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

159 160 161 162 163
private:
    QTextCodec *m_outputCodec;
    QTextCodec::ConverterState m_outputCodecState;

    QByteArray m_inbuffer;
164
    bool m_busy;
con's avatar
con committed
165

Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
166
    QProcess m_gdbProc;
167 168 169 170
    AbstractGdbAdapter *m_gdbAdapter;

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

171
    public: // Otherwise the Qt flag macros are unhappy.
172 173
    enum GdbCommandFlag {
        NoFlags = 0,
174 175 176 177 178 179
        // 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,
180
        WatchUpdate = Discardable | RebuildWatchModel,
181 182 183 184 185 186 187 188 189 190
        // 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,
191 192
    };
    Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)
193
    private:
194

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

    struct GdbCommand
    {
hjk's avatar
hjk committed
202 203 204
        GdbCommand()
            : flags(0), callback(0), adapterCallback(0), callbackName(0)
        {}
205 206 207

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

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

243
    QHash<int, GdbCommand> m_cookieForToken;
244
    int commandTimeoutTime() const;
245
    QTimer *m_commandTimer;
con's avatar
con committed
246

247 248
    QByteArray m_pendingConsoleStreamOutput;
    QByteArray m_pendingLogStreamOutput;
249

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

255
    int m_pendingWatchRequests; // Watch updating commands in flight
256
    int m_pendingBreakpointRequests; // Watch updating commands in flight
hjk's avatar
hjk committed
257

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

262
    QList<GdbCommand> m_commandsToRunOnTemporaryBreak;
hjk's avatar
hjk committed
263
    int gdbVersion() const { return m_gdbVersion; }
264 265

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

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

hjk's avatar
hjk committed
274
    bool isSynchroneous() const { return hasPython(); }
275
    virtual bool hasPython() const;
276 277 278
    bool supportsThreads() const;

    // Gdb initialization sequence
hjk's avatar
hjk committed
279
    void handleShowVersion(const GdbResponse &response);
280
    void handleHasPython(const GdbResponse &response);
con's avatar
con committed
281

282
    int m_gdbVersion; // 6.8.0 is 60800
283
    int m_gdbBuildVersion; // MAC only?
284
    bool m_isMacGdb;
285
    bool m_hasPython;
hjk's avatar
hjk committed
286

287
private: ////////// Inferior Management //////////
288

289
    // This should be always the last call in a function.
290
    Q_SLOT virtual void attemptBreakpointSynchronization();
291

hjk's avatar
hjk committed
292 293 294 295 296
    virtual void executeStep();
    virtual void executeStepOut();
    virtual void executeNext();
    virtual void executeStepI();
    virtual void executeNextI();
con's avatar
con committed
297

298 299 300 301
    void continueInferiorInternal();
    void autoContinueInferior();
    virtual void continueInferior();
    virtual void interruptInferior();
302
    void interruptInferiorTemporarily();
con's avatar
con committed
303

hjk's avatar
hjk committed
304 305
    virtual void executeRunToLine(const QString &fileName, int lineNumber);
    virtual void executeRunToFunction(const QString &functionName);
306
//    void handleExecRunToFunction(const GdbResponse &response);
hjk's avatar
hjk committed
307 308
    virtual void executeJumpToLine(const QString &fileName, int lineNumber);
    virtual void executeReturn();
con's avatar
con committed
309

hjk's avatar
hjk committed
310 311 312 313
    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
314

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

319
#ifdef Q_OS_LINUX
320 321
    void handleInfoProc(const GdbResponse &response);

322 323 324
    QByteArray m_entryPoint;
#endif

325 326 327 328 329 330
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
331 332 333 334

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

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

359
    bool m_modulesListOutdated;
con's avatar
con committed
360

361 362 363 364 365 366 367 368 369
    //
    // 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
370 371
    //
    // Register specific stuff
hjk's avatar
hjk committed
372
    //
373 374
    Q_SLOT virtual void reloadRegisters();
    virtual void setRegisterValue(int nr, const QString &value);
hjk's avatar
hjk committed
375 376
    void handleRegisterListNames(const GdbResponse &response);
    void handleRegisterListValues(const GdbResponse &response);
con's avatar
con committed
377

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

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

    QString fullName(const QString &fileName);
401 402 403 404 405
#ifdef Q_OS_WIN
    QString cleanupFullName(const QString &fileName);
#else
    QString cleanupFullName(const QString &fileName) { return fileName; }
#endif
406 407 408 409

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

411
    void invalidateSourcesList();
412 413
    bool m_sourcesListOutdated;
    bool m_sourcesListUpdating;
414
    bool m_breakListOutdated;
415

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

430 431
    QList<GdbMi> m_currentFunctionArgs;
    QString m_currentFrame;
con's avatar
con committed
432 433

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

439 440
    virtual void assignValueInDebugger(const QString &expr, const QString &value);

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

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

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

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

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

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

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

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

483 484 485
    void handleStackListLocalsClassic(const GdbResponse &response);
    void handleStackListLocalsPython(const GdbResponse &response);

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

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

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

510 511
    DebuggingHelperState m_debuggingHelperState;
    QtDumperHelper m_dumperHelper;
512

513
private: ////////// Convenience Functions //////////
hjk's avatar
hjk committed
514

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

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

    static void setWatchDataValue(WatchData &data, const GdbMi &mi,
        int encoding = 0);
    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);
534
    static void setWatchDataAddressHelper(WatchData &data, const QByteArray &addr);
535
    static void setWatchDataSAddress(WatchData &data, const GdbMi &mi);
con's avatar
con committed
536 537 538 539 540
};

} // namespace Internal
} // namespace Debugger

541 542
Q_DECLARE_OPERATORS_FOR_FLAGS(Debugger::Internal::GdbEngine::GdbCommandFlags)

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