gdbengine.h 19.2 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 "debuggerengine.h"
34

35
#include "gdbmi.h"
ck's avatar
ck committed
36
#include "localgdbprocess.h"
37
#include "stackframe.h"
38
#include "watchutils.h"
39

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

QT_BEGIN_NAMESPACE
54 55
class QMainWindow;
class QMessageBox;
56
class QTimer;
con's avatar
con committed
57 58 59 60 61
QT_END_NAMESPACE

namespace Debugger {
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

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

public:
91
    explicit GdbEngine(const DebuggerStartParameters &startParameters);
con's avatar
con committed
92 93 94
    ~GdbEngine();

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

106
private: ////////// General Interface //////////
con's avatar
con committed
107

hjk's avatar
hjk committed
108 109 110 111
    virtual void setupEngine();
    virtual void setupInferior();
    virtual void runEngine();

112
    virtual unsigned debuggerCapabilities() const;
113
    virtual void quitDebugger();
114
    virtual void detachDebugger();
hjk's avatar
hjk committed
115 116
    virtual void shutdownEngine();
    virtual void shutdownInferior();
con's avatar
con committed
117

118
    virtual void executeDebuggerCommand(const QString &command);
119
    virtual QString qtNamespace() const { return m_dumperHelper.qtNamespace(); }
con's avatar
con committed
120

121
private: ////////// General State //////////
con's avatar
con committed
122

123 124 125
    void initializeVariables();
    DebuggerStartMode startMode() const;
    Q_SLOT void setAutoDerefPointers(const QVariant &on);
126

127
    bool m_registerNamesListed;
128

129
private: ////////// Gdb Process Management //////////
130

131
    AbstractGdbAdapter *createAdapter();
132 133 134
    bool startGdb(const QStringList &args = QStringList(),
                  const QString &gdb = QString(),
                  const QString &settingsIdHint = QString());
Oswald Buddenhagen's avatar
Oswald Buddenhagen committed
135 136 137
    void handleInferiorShutdown(const GdbResponse &response);
    void handleGdbExit(const GdbResponse &response);

138
    void handleAdapterStarted();
hjk's avatar
hjk committed
139
    void defaultInferiorShutdown(const char *cmd);
hjk's avatar
hjk committed
140

141 142
    // Something went wrong with the adapter *before* adapterStarted() was emitted.
    // Make sure to clean up everything before emitting this signal.
143 144
    void handleAdapterStartFailed(const QString &msg,
        const QString &settingsIdHint = QString());
con's avatar
con committed
145

146
    // This triggers the initial breakpoint synchronization and causes
hjk's avatar
hjk committed
147
    // finishInferiorSetup() being called once done.
148
    void handleInferiorPrepared();
hjk's avatar
hjk committed
149 150
    // This notifies the base of a successful inferior setup.
    void finishInferiorSetup();
151

152
    // The adapter is still running just fine, but it failed to acquire a debuggee.
hjk's avatar
hjk committed
153 154 155 156
    void notifyInferiorSetupFailed(const QString &msg);

    void notifyAdapterShutdownOk();
    void notifyAdapterShutdownFailed();
157

158 159
    // Something went wrong with the adapter *after* adapterStarted() was emitted.
    // Make sure to clean up everything before emitting this signal.
160
    void handleAdapterCrashed(const QString &msg);
con's avatar
con committed
161

162 163 164 165 166 167 168
private slots:
    void handleGdbFinished(int, QProcess::ExitStatus status);
    void handleGdbError(QProcess::ProcessError error);
    void readGdbStandardOutput();
    void readGdbStandardError();
    void readDebugeeOutput(const QByteArray &data);

169 170 171 172 173
private:
    QTextCodec *m_outputCodec;
    QTextCodec::ConverterState m_outputCodecState;

    QByteArray m_inbuffer;
174
    bool m_busy;
con's avatar
con committed
175

176 177
    AbstractGdbAdapter *m_gdbAdapter;

178 179 180 181
    // Name of the convenience variable containing the last
    // known function return value.
    QByteArray m_resultVarName;

182 183
private: ////////// Gdb Command Management //////////

184
    public: // Otherwise the Qt flag macros are unhappy.
185 186
    enum GdbCommandFlag {
        NoFlags = 0,
187 188 189 190 191 192
        // 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,
193
        WatchUpdate = Discardable | RebuildWatchModel,
hjk's avatar
hjk committed
194
        // We can live without receiving an answer.
195 196 197 198 199 200 201 202 203
        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,
204 205
        // This command needs to be send immediately.
        Immediate = 256,
206 207
        // This is a command that needs to be wrapped into -interpreter-exec console
        ConsoleCommand = 512,
208 209
    };
    Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)
210
    private:
211

hjk's avatar
hjk committed
212
    typedef void (GdbEngine::*GdbCommandCallback)
hjk's avatar
hjk committed
213
        (const GdbResponse &response);
hjk's avatar
hjk committed
214
    typedef void (AbstractGdbAdapter::*AdapterCallback)
hjk's avatar
hjk committed
215
        (const GdbResponse &response);
216 217 218

    struct GdbCommand
    {
hjk's avatar
hjk committed
219 220 221
        GdbCommand()
            : flags(0), callback(0), adapterCallback(0), callbackName(0)
        {}
222 223 224

        int flags;
        GdbCommandCallback callback;
hjk's avatar
hjk committed
225
        AdapterCallback adapterCallback;
226
        const char *callbackName;
227
        QByteArray command;
228
        QVariant cookie;
229
        QTime postTime;
230 231
    };

232
    // Type and cookie are sender-internal data, opaque for the "event
con's avatar
con committed
233
    // queue". resultNeeded == true increments m_pendingResults on
hjk's avatar
hjk committed
234
    // send and decrements on receipt, effectively preventing
con's avatar
con committed
235
    // watch model updates before everything is finished.
hjk's avatar
hjk committed
236
    void flushCommand(const GdbCommand &cmd);
237
    void postCommand(const QByteArray &command,
238 239 240 241
                     GdbCommandFlags flags,
                     GdbCommandCallback callback = 0,
                     const char *callbackName = 0,
                     const QVariant &cookie = QVariant());
242
    void postCommand(const QByteArray &command,
243 244 245
                     GdbCommandCallback callback = 0,
                     const char *callbackName = 0,
                     const QVariant &cookie = QVariant());
246
    void postCommand(const QByteArray &command,
hjk's avatar
hjk committed
247 248 249
                     AdapterCallback callback,
                     const char *callbackName,
                     const QVariant &cookie = QVariant());
250
    void postCommand(const QByteArray &command,
251 252 253 254
                     GdbCommandFlags flags,
                     AdapterCallback callback,
                     const char *callbackName,
                     const QVariant &cookie = QVariant());
hjk's avatar
hjk committed
255
    void postCommandHelper(const GdbCommand &cmd);
256
    void flushQueuedCommands();
257
    Q_SLOT void commandTimeout();
con's avatar
con committed
258 259
    void setTokenBarrier();

260
    QHash<int, GdbCommand> m_cookieForToken;
261
    int commandTimeoutTime() const;
262
    QTimer *m_commandTimer;
con's avatar
con committed
263

264 265
    QByteArray m_pendingConsoleStreamOutput;
    QByteArray m_pendingLogStreamOutput;
266

267
    // This contains the first token number for the current round
268 269 270
    // of evaluation. Responses with older tokens are considers
    // out of date and discarded.
    int m_oldestAcceptableToken;
con's avatar
con committed
271

272
    int m_pendingWatchRequests; // Watch updating commands in flight
273
    int m_pendingBreakpointRequests; // Watch updating commands in flight
hjk's avatar
hjk committed
274

275
    typedef void (GdbEngine::*CommandsDoneCallback)();
276
    // This function is called after all previous responses have been received.
277
    CommandsDoneCallback m_commandsDoneCallback;
hjk's avatar
hjk committed
278

279
    QList<GdbCommand> m_commandsToRunOnTemporaryBreak;
hjk's avatar
hjk committed
280
    int gdbVersion() const { return m_gdbVersion; }
281 282

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

284
    void handleResponse(const QByteArray &buff);
285
    void handleStopResponse(const GdbMi &data);
286
    void handleResultRecord(GdbResponse *response);
hjk's avatar
hjk committed
287
    void handleStop1(const GdbResponse &response);
288
    void handleStop1(const GdbMi &data);
289 290
    StackFrame parseStackFrame(const GdbMi &mi, int level);

hjk's avatar
hjk committed
291
    bool isSynchroneous() const { return hasPython(); }
292
    virtual bool hasPython() const;
293 294 295
    bool supportsThreads() const;

    // Gdb initialization sequence
hjk's avatar
hjk committed
296
    void handleShowVersion(const GdbResponse &response);
297
    void handleHasPython(const GdbResponse &response);
con's avatar
con committed
298

299
    int m_gdbVersion; // 6.8.0 is 60800
300
    int m_gdbBuildVersion; // MAC only?
301
    bool m_isMacGdb;
302
    bool m_hasPython;
hjk's avatar
hjk committed
303

304
private: ////////// Inferior Management //////////
305

306
    // This should be always the last call in a function.
307
    Q_SLOT virtual void attemptBreakpointSynchronization();
308

hjk's avatar
hjk committed
309 310 311 312 313
    virtual void executeStep();
    virtual void executeStepOut();
    virtual void executeNext();
    virtual void executeStepI();
    virtual void executeNextI();
con's avatar
con committed
314

315 316 317 318
    void continueInferiorInternal();
    void autoContinueInferior();
    virtual void continueInferior();
    virtual void interruptInferior();
319
    void interruptInferiorTemporarily();
con's avatar
con committed
320

hjk's avatar
hjk committed
321 322 323 324
    virtual void executeRunToLine(const QString &fileName, int lineNumber);
    virtual void executeRunToFunction(const QString &functionName);
    virtual void executeJumpToLine(const QString &fileName, int lineNumber);
    virtual void executeReturn();
con's avatar
con committed
325

hjk's avatar
hjk committed
326 327 328 329
    void handleExecuteContinue(const GdbResponse &response);
    void handleExecuteStep(const GdbResponse &response);
    void handleExecuteNext(const GdbResponse &response);
    void handleExecuteReturn(const GdbResponse &response);
330
    void handleExecuteJumpToLine(const GdbResponse &response);
331 332
    void handleExecuteRunToLine(const GdbResponse &response);
    //void handleExecuteRunToFunction(const GdbResponse &response);
con's avatar
con committed
333

334
    void maybeHandleInferiorPidChanged(const QString &pid);
335 336
    void handleInfoProc(const GdbResponse &response);

337
    QByteArray m_entryPoint;
hjk's avatar
hjk committed
338
    QFutureInterface<void> *m_progress;
339

340 341 342 343 344
private: ////////// View & Data Stuff //////////

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

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

    //
    // Modules specific stuff
    //
368 369
    virtual void loadSymbols(const QString &moduleName);
    virtual void loadAllSymbols();
hjk's avatar
hjk committed
370
    virtual void requestModuleSymbols(const QString &moduleName);
371
    virtual void reloadModules();
372
    void reloadModulesInternal();
hjk's avatar
hjk committed
373
    void handleModulesList(const GdbResponse &response);
con's avatar
con committed
374

375
    bool m_modulesListOutdated;
con's avatar
con committed
376

377 378 379 380 381 382 383 384 385
    //
    // 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
386 387
    //
    // Register specific stuff
hjk's avatar
hjk committed
388
    //
389 390
    Q_SLOT virtual void reloadRegisters();
    virtual void setRegisterValue(int nr, const QString &value);
hjk's avatar
hjk committed
391 392
    void handleRegisterListNames(const GdbResponse &response);
    void handleRegisterListValues(const GdbResponse &response);
con's avatar
con committed
393

394 395 396
    //
    // Disassembler specific stuff
    //
397
    virtual void fetchDisassembler(DisassemblerViewAgent *agent);
398
    void fetchDisassemblerByAddress(const DisassemblerAgentCookie &ac,
399
        bool useMixedMode);
400
    void fetchDisassemblerByCli(const DisassemblerAgentCookie &ac,
401
        bool useMixedMode);
402
    void fetchDisassemblerByAddressCli(const DisassemblerAgentCookie &ac);
403
    void handleFetchDisassemblerByCli(const GdbResponse &response);
404 405 406 407 408
    void handleFetchDisassemblerByLine(const GdbResponse &response);
    void handleFetchDisassemblerByAddress1(const GdbResponse &response);
    void handleFetchDisassemblerByAddress0(const GdbResponse &response);
    QString parseDisassembler(const GdbMi &lines);

409 410
    //
    // Source file specific stuff
hjk's avatar
hjk committed
411
    //
412
    virtual void reloadSourceFiles();
413
    void reloadSourceFilesInternal();
414 415 416
    void handleQuerySources(const GdbResponse &response);

    QString fullName(const QString &fileName);
417 418 419 420 421
#ifdef Q_OS_WIN
    QString cleanupFullName(const QString &fileName);
#else
    QString cleanupFullName(const QString &fileName) { return fileName; }
#endif
422 423 424 425

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

427
    void invalidateSourcesList();
428 429
    bool m_sourcesListOutdated;
    bool m_sourcesListUpdating;
430
    bool m_breakListOutdated;
431

con's avatar
con committed
432 433
    //
    // Stack specific stuff
hjk's avatar
hjk committed
434
    //
435
    void updateAll();
436 437
        void updateAllClassic();
        void updateAllPython();
hjk's avatar
hjk committed
438 439
    void handleStackListFrames(const GdbResponse &response);
    void handleStackSelectThread(const GdbResponse &response);
440
    void handleStackSelectFrame(const GdbResponse &response);
441 442
    void handleThreadListIds(const GdbResponse &response);
    void handleThreadInfo(const GdbResponse &response);
hjk's avatar
hjk committed
443
    Q_SLOT void reloadStack(bool forceGotoLocation);
444
    Q_SLOT virtual void reloadFullStack();
445
    int currentFrame() const;
con's avatar
con committed
446

447 448
    QList<GdbMi> m_currentFunctionArgs;
    QString m_currentFrame;
con's avatar
con committed
449 450

    //
451
    // Watch specific stuff
hjk's avatar
hjk committed
452
    //
hjk's avatar
hjk committed
453 454
    virtual void setToolTipExpression(const QPoint &mousePos,
        TextEditor::ITextEditor *editor, int cursorPos);
con's avatar
con committed
455

456 457
    virtual void assignValueInDebugger(const QString &expr, const QString &value);

458 459
    virtual void fetchMemory(MemoryViewAgent *agent, QObject *token,
        quint64 addr, quint64 length);
460 461 462 463
    void handleFetchMemory(const GdbResponse &response);

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

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

468
    void virtual updateWatchData(const WatchData &data);
469
    Q_SLOT void updateWatchDataHelper(const WatchData &data);
470
    void rebuildWatchModel();
471
    bool showToolTip();
con's avatar
con committed
472 473 474

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

477 478
    void runDebuggingHelperClassic(const WatchData &data, bool dumpChildren);
    void runDirectDebuggingHelperClassic(const WatchData &data, bool dumpChildren);
479
    bool hasDebuggingHelperForType(const QString &type) const;
con's avatar
con committed
480

481 482
    void handleVarListChildrenClassic(const GdbResponse &response);
    void handleVarListChildrenHelperClassic(const GdbMi &child,
483
        const WatchData &parent);
hjk's avatar
hjk committed
484 485
    void handleVarCreate(const GdbResponse &response);
    void handleVarAssign(const GdbResponse &response);
486
    void handleEvaluateExpressionClassic(const GdbResponse &response);
487 488 489
    void handleQueryDebuggingHelperClassic(const GdbResponse &response);
    void handleDebuggingHelperValue2Classic(const GdbResponse &response);
    void handleDebuggingHelperValue3Classic(const GdbResponse &response);
hjk's avatar
hjk committed
490 491
    void handleDebuggingHelperEditValue(const GdbResponse &response);
    void handleDebuggingHelperSetup(const GdbResponse &response);
492
    void handleDebuggingHelperVersionCheckClassic(const GdbResponse &response);
493

494 495 496
    Q_SLOT void createFullBacktrace();
    void handleCreateFullBacktrace(const GdbResponse &response);

497
    void updateLocals(const QVariant &cookie = QVariant());
498 499 500
        void updateLocalsClassic(const QVariant &cookie);
        void updateLocalsPython(const QByteArray &varList);
            void handleStackFramePython(const GdbResponse &response);
501

502 503 504
    void handleStackListLocalsClassic(const GdbResponse &response);
    void handleStackListLocalsPython(const GdbResponse &response);

505 506 507 508
    WatchData localVariable(const GdbMi &item,
                            const QStringList &uninitializedVariables,
                            QMap<QByteArray, int> *seen);
    void setLocals(const QList<GdbMi> &locals);
509
    void handleStackListArgumentsClassic(const GdbResponse &response);
con's avatar
con committed
510

511
    QSet<QByteArray> m_processedNames;
con's avatar
con committed
512

513 514 515
    //
    // Dumper Management
    //
516
    bool checkDebuggingHelpers();
517 518 519 520 521 522
        bool checkDebuggingHelpersClassic();
    void setDebuggingHelperStateClassic(DebuggingHelperState);
    void tryLoadDebuggingHelpersClassic();
    void tryQueryDebuggingHelpersClassic();
    Q_SLOT void recheckDebuggingHelperAvailabilityClassic();
    Q_SLOT void setDebugDebuggingHelpersClassic(const QVariant &on);
523
    Q_SLOT void setUseDebuggingHelpers(const QVariant &on);
524

525 526
    DebuggingHelperState m_debuggingHelperState;
    QtDumperHelper m_dumperHelper;
527
    QString m_gdb;
528

529 530 531
    // 
    // Convenience Functions
    //
532
    QString errorMessage(QProcess::ProcessError error);
533 534
    QMessageBox *showMessageBox(int icon, const QString &title, const QString &text,
        int buttons = 0);
535
    QMainWindow *mainWindow() const;
ck's avatar
ck committed
536
    AbstractGdbProcess *gdbProc() const;
hjk's avatar
hjk committed
537
    void showExecutionError(const QString &message);
538

539 540
    static QString m_toolTipExpression;
    static QPoint m_toolTipPos;
541
    static QByteArray tooltipIName(const QString &exp);
542 543 544

    // HACK:
    StackFrame m_targetFrame;
con's avatar
con committed
545 546 547 548 549
};

} // namespace Internal
} // namespace Debugger

550 551
Q_DECLARE_OPERATORS_FOR_FLAGS(Debugger::Internal::GdbEngine::GdbCommandFlags)

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