2010-06-16 11:08:54 +02:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2011-01-11 16:28:15 +01:00
|
|
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
2010-06-16 11:08:54 +02:00
|
|
|
**
|
|
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** No Commercial Usage
|
2010-06-16 11:08:54 +02:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** This file contains pre-release code and may not be distributed.
|
|
|
|
|
** You may use this file in accordance with the terms and conditions
|
|
|
|
|
** contained in the Technology Preview License Agreement accompanying
|
|
|
|
|
** this package.
|
2010-06-16 11:08:54 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
|
|
|
|
** If you have questions regarding the use of this file, please contact
|
|
|
|
|
** Nokia at qt-info@nokia.com.
|
2010-06-16 11:08:54 +02:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef DEBUGGER_DEBUGGERENGINE_H
|
|
|
|
|
#define DEBUGGER_DEBUGGERENGINE_H
|
|
|
|
|
|
|
|
|
|
#include "debugger_global.h"
|
|
|
|
|
#include "debuggerconstants.h"
|
2010-11-10 16:33:11 +01:00
|
|
|
#include "breakpoint.h" // For 'BreakpointId'
|
2010-10-19 11:14:03 +02:00
|
|
|
|
2010-06-16 11:08:54 +02:00
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
#include <QtCore/QStringList>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QDebug;
|
|
|
|
|
class QPoint;
|
2010-07-21 14:24:29 +02:00
|
|
|
class QMessageBox;
|
2011-01-10 10:14:23 +01:00
|
|
|
class QAbstractItemModel;
|
2010-06-16 11:08:54 +02:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace TextEditor {
|
|
|
|
|
class ITextEditor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
class IOptionsPage;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
|
2010-09-13 13:30:35 +02:00
|
|
|
class DebuggerEnginePrivate;
|
2010-11-08 15:19:13 +01:00
|
|
|
class DebuggerRunControl;
|
2011-01-10 10:14:23 +01:00
|
|
|
class DebuggerStartParameters;
|
2010-06-16 11:08:54 +02:00
|
|
|
|
|
|
|
|
DEBUGGER_EXPORT QDebug operator<<(QDebug str, const DebuggerStartParameters &);
|
|
|
|
|
DEBUGGER_EXPORT QDebug operator<<(QDebug str, DebuggerState state);
|
|
|
|
|
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
2010-11-10 11:39:01 +01:00
|
|
|
class DebuggerPluginPrivate;
|
2010-12-14 12:29:32 +01:00
|
|
|
class DisassemblerAgent;
|
|
|
|
|
class MemoryAgent;
|
2010-06-16 11:08:54 +02:00
|
|
|
class WatchData;
|
|
|
|
|
class BreakHandler;
|
|
|
|
|
class ModulesHandler;
|
|
|
|
|
class RegisterHandler;
|
|
|
|
|
class StackHandler;
|
|
|
|
|
class StackFrame;
|
|
|
|
|
class SourceFilesHandler;
|
|
|
|
|
class ThreadsHandler;
|
|
|
|
|
class WatchHandler;
|
2010-11-16 11:48:17 +01:00
|
|
|
class BreakpointParameters;
|
2010-12-03 12:07:32 +01:00
|
|
|
class QmlCppEngine;
|
2010-06-16 11:08:54 +02:00
|
|
|
|
2010-09-13 08:32:12 +02:00
|
|
|
struct WatchUpdateFlags
|
|
|
|
|
{
|
|
|
|
|
WatchUpdateFlags() : tryIncremental(false) {}
|
|
|
|
|
bool tryIncremental;
|
|
|
|
|
};
|
2010-11-08 15:19:13 +01:00
|
|
|
|
2010-12-16 19:06:33 +01:00
|
|
|
class Location
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Location() { init(); }
|
|
|
|
|
Location(quint64 address) { init(); m_address = address; }
|
|
|
|
|
Location(const QString &file) { init(); m_fileName = file; }
|
|
|
|
|
Location(const QString &file, int line, bool marker = true)
|
|
|
|
|
{ init(); m_lineNumber = line; m_fileName = file; m_needsMarker = marker; }
|
2011-01-10 10:14:23 +01:00
|
|
|
Location(const StackFrame &frame, bool marker = true);
|
2010-12-16 19:06:33 +01:00
|
|
|
QString fileName() const { return m_fileName; }
|
|
|
|
|
QString functionName() const { return m_functionName; }
|
|
|
|
|
int lineNumber() const { return m_lineNumber; }
|
|
|
|
|
void setNeedsRaise(bool on) { m_needsRaise = on; }
|
|
|
|
|
void setNeedsMarker(bool on) { m_needsMarker = on; }
|
|
|
|
|
void setFileName(const QString &fileName) { m_fileName = fileName; }
|
|
|
|
|
bool needsRaise() const { return m_needsRaise; }
|
|
|
|
|
bool needsMarker() const { return m_needsMarker; }
|
|
|
|
|
bool hasDebugInfo() const { return m_hasDebugInfo; }
|
|
|
|
|
quint64 address() const { return m_address; }
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void init() { m_needsMarker = false; m_needsRaise = true; m_lineNumber = -1;
|
|
|
|
|
m_address = 0; m_hasDebugInfo = true; }
|
|
|
|
|
bool m_needsMarker;
|
|
|
|
|
bool m_needsRaise;
|
|
|
|
|
bool m_hasDebugInfo;
|
|
|
|
|
int m_lineNumber;
|
|
|
|
|
QString m_fileName;
|
|
|
|
|
QString m_functionName;
|
|
|
|
|
quint64 m_address;
|
|
|
|
|
};
|
|
|
|
|
|
2010-09-13 13:30:35 +02:00
|
|
|
} // namespace Internal
|
2010-09-13 08:32:12 +02:00
|
|
|
|
2010-11-08 15:19:13 +01:00
|
|
|
|
2010-06-25 14:08:53 +02:00
|
|
|
// FIXME: DEBUGGER_EXPORT?
|
|
|
|
|
class DEBUGGER_EXPORT DebuggerEngine : public QObject
|
2010-06-16 11:08:54 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2011-01-12 12:10:12 +01:00
|
|
|
explicit DebuggerEngine(const DebuggerStartParameters &sp,
|
|
|
|
|
DebuggerEngine *parentEngine = 0);
|
2010-06-16 11:08:54 +02:00
|
|
|
virtual ~DebuggerEngine();
|
|
|
|
|
|
2011-01-12 13:43:23 +01:00
|
|
|
const DebuggerStartParameters &startParameters() const;
|
|
|
|
|
DebuggerStartParameters &startParameters();
|
|
|
|
|
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual void setToolTipExpression(const QPoint & mousePos,
|
2010-11-08 15:19:13 +01:00
|
|
|
TextEditor::ITextEditor *editor, int cursorPos);
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual void updateWatchData(const Internal::WatchData &data,
|
2010-10-27 14:21:33 +02:00
|
|
|
const Internal::WatchUpdateFlags & flags = Internal::WatchUpdateFlags());
|
2011-01-12 12:10:12 +01:00
|
|
|
virtual void startDebugger(DebuggerRunControl *runControl);
|
2010-09-13 13:30:35 +02:00
|
|
|
|
|
|
|
|
virtual void watchPoint(const QPoint &);
|
2010-12-08 12:43:11 +01:00
|
|
|
virtual void openMemoryView(quint64 addr);
|
2010-12-14 12:29:32 +01:00
|
|
|
virtual void fetchMemory(Internal::MemoryAgent *, QObject *,
|
2010-09-13 13:30:35 +02:00
|
|
|
quint64 addr, quint64 length);
|
2010-12-13 18:17:31 +01:00
|
|
|
virtual void updateMemoryViews();
|
2010-12-16 19:06:33 +01:00
|
|
|
virtual void openDisassemblerView(const Internal::Location &location);
|
2010-12-14 12:29:32 +01:00
|
|
|
virtual void fetchDisassembler(Internal::DisassemblerAgent *);
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual void activateFrame(int index);
|
|
|
|
|
|
|
|
|
|
virtual void reloadModules();
|
|
|
|
|
virtual void examineModules();
|
|
|
|
|
virtual void loadSymbols(const QString &moduleName);
|
2010-12-21 13:34:59 +01:00
|
|
|
virtual void loadSymbolsForStack();
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual void loadAllSymbols();
|
|
|
|
|
virtual void requestModuleSymbols(const QString &moduleName);
|
|
|
|
|
|
|
|
|
|
virtual void reloadRegisters();
|
|
|
|
|
virtual void reloadSourceFiles();
|
|
|
|
|
virtual void reloadFullStack();
|
2010-07-08 18:10:50 +02:00
|
|
|
|
|
|
|
|
virtual void setRegisterValue(int regnr, const QString &value);
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual void addOptionPages(QList<Core::IOptionsPage*> *) const;
|
|
|
|
|
virtual unsigned debuggerCapabilities() const;
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual bool isSynchronous() const;
|
|
|
|
|
virtual QByteArray qtNamespace() const;
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2010-09-13 13:30:35 +02:00
|
|
|
virtual void createSnapshot();
|
|
|
|
|
virtual void updateAll();
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2011-01-12 13:43:23 +01:00
|
|
|
typedef Internal::BreakpointId BreakpointId;
|
2010-11-10 16:33:11 +01:00
|
|
|
virtual bool stateAcceptsBreakpointChanges() const { return true; }
|
|
|
|
|
virtual void attemptBreakpointSynchronization();
|
2010-11-26 10:20:50 +01:00
|
|
|
virtual bool acceptsBreakpoint(BreakpointId id) const = 0;
|
2010-11-10 16:33:11 +01:00
|
|
|
virtual void insertBreakpoint(BreakpointId id); // FIXME: make pure
|
|
|
|
|
virtual void removeBreakpoint(BreakpointId id); // FIXME: make pure
|
|
|
|
|
virtual void changeBreakpoint(BreakpointId id); // FIXME: make pure
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2010-11-08 15:19:13 +01:00
|
|
|
virtual void assignValueInDebugger(const Internal::WatchData *data,
|
|
|
|
|
const QString &expr, const QVariant &value);
|
2010-09-15 19:02:12 +02:00
|
|
|
virtual void removeTooltip();
|
2010-11-10 16:33:11 +01:00
|
|
|
virtual void selectThread(int index);
|
2010-07-21 14:24:29 +02:00
|
|
|
|
2010-12-10 12:41:44 +01:00
|
|
|
virtual void handleRemoteSetupDone(int gdbServerPort, int qmlPort);
|
|
|
|
|
virtual void handleRemoteSetupFailed(const QString &message);
|
|
|
|
|
|
2011-01-12 12:10:12 +01:00
|
|
|
virtual Internal::ModulesHandler *modulesHandler() const;
|
|
|
|
|
virtual Internal::RegisterHandler *registerHandler() const;
|
|
|
|
|
virtual Internal::StackHandler *stackHandler() const;
|
|
|
|
|
virtual Internal::ThreadsHandler *threadsHandler() const;
|
|
|
|
|
virtual Internal::WatchHandler *watchHandler() const;
|
|
|
|
|
virtual Internal::SourceFilesHandler *sourceFilesHandler() const;
|
|
|
|
|
virtual Internal::BreakHandler *breakHandler() const;
|
2010-06-16 11:08:54 +02:00
|
|
|
|
2010-08-18 13:54:12 +02:00
|
|
|
virtual QAbstractItemModel *modulesModel() const;
|
|
|
|
|
virtual QAbstractItemModel *registerModel() const;
|
|
|
|
|
virtual QAbstractItemModel *stackModel() const;
|
|
|
|
|
virtual QAbstractItemModel *threadsModel() const;
|
|
|
|
|
virtual QAbstractItemModel *localsModel() const;
|
|
|
|
|
virtual QAbstractItemModel *watchersModel() const;
|
|
|
|
|
virtual QAbstractItemModel *returnModel() const;
|
|
|
|
|
virtual QAbstractItemModel *sourceFilesModel() const;
|
2010-06-16 11:08:54 +02:00
|
|
|
|
2010-07-21 11:02:51 +02:00
|
|
|
void progressPing();
|
2010-06-22 15:14:44 +02:00
|
|
|
void handleFinished();
|
2010-07-20 18:31:35 +02:00
|
|
|
void handleStartFailed();
|
2010-06-16 11:08:54 +02:00
|
|
|
bool debuggerActionsEnabled() const;
|
|
|
|
|
static bool debuggerActionsEnabled(DebuggerState state);
|
|
|
|
|
|
|
|
|
|
DebuggerState state() const;
|
2010-07-09 17:07:59 +02:00
|
|
|
DebuggerState lastGoodState() const;
|
|
|
|
|
DebuggerState targetState() const;
|
2010-09-13 13:30:35 +02:00
|
|
|
bool isDying() const;
|
2010-06-16 11:08:54 +02:00
|
|
|
|
|
|
|
|
// Dumper stuff (common to cdb and gdb).
|
|
|
|
|
bool qtDumperLibraryEnabled() const;
|
|
|
|
|
QString qtDumperLibraryName() const;
|
|
|
|
|
QStringList qtDumperLibraryLocations() const;
|
2010-07-21 12:04:20 +02:00
|
|
|
void showQtDumperLibraryWarning(const QString &details);
|
2010-06-16 11:08:54 +02:00
|
|
|
|
|
|
|
|
static const char *stateName(int s);
|
|
|
|
|
|
|
|
|
|
void notifyInferiorPid(qint64 pid);
|
|
|
|
|
qint64 inferiorPid() const;
|
|
|
|
|
bool isReverseDebugging() const;
|
2010-06-22 15:37:27 +02:00
|
|
|
void handleCommand(int role, const QVariant &value);
|
2010-06-16 11:08:54 +02:00
|
|
|
|
2010-07-09 08:48:33 +02:00
|
|
|
// Convenience
|
2010-12-14 12:21:29 +01:00
|
|
|
Q_SLOT void showMessage(const QString &msg, int channel = LogDebug,
|
|
|
|
|
int timeout = -1) const;
|
2010-07-14 16:01:53 +02:00
|
|
|
Q_SLOT void showStatusMessage(const QString &msg, int timeout = -1) const;
|
2010-07-09 08:48:33 +02:00
|
|
|
|
2010-06-16 11:08:54 +02:00
|
|
|
void resetLocation();
|
2010-12-16 19:06:33 +01:00
|
|
|
virtual void gotoLocation(const Internal::Location &location);
|
2010-07-09 17:07:59 +02:00
|
|
|
virtual void quitDebugger(); // called by DebuggerRunControl
|
2010-06-16 11:08:54 +02:00
|
|
|
|
2010-10-27 14:21:33 +02:00
|
|
|
virtual void updateViews();
|
2010-10-28 08:55:50 +02:00
|
|
|
bool isSlaveEngine() const;
|
2011-01-12 13:43:23 +01:00
|
|
|
DebuggerEngine *masterEngine() const;
|
2010-10-27 14:21:33 +02:00
|
|
|
|
2010-08-18 13:54:12 +02:00
|
|
|
signals:
|
|
|
|
|
void stateChanged(const DebuggerState &state);
|
2010-10-27 14:21:33 +02:00
|
|
|
void updateViewsRequested();
|
2010-12-10 12:41:44 +01:00
|
|
|
/*
|
2010-12-16 19:06:33 +01:00
|
|
|
* For "external" clients of a debugger run control that needs to do
|
2010-12-10 12:41:44 +01:00
|
|
|
* further setup before the debugger is started (e.g. Maemo).
|
|
|
|
|
* Afterwards, handleSetupDone() or handleSetupFailed() must be called
|
|
|
|
|
* to continue or abort debugging, respectively.
|
|
|
|
|
* This signal is only emitted if the start parameters indicate that
|
|
|
|
|
* a server start script should be used, but none is given.
|
|
|
|
|
*/
|
|
|
|
|
void requestRemoteSetup();
|
2010-08-18 13:54:12 +02:00
|
|
|
|
2010-06-16 11:08:54 +02:00
|
|
|
protected:
|
2010-08-11 09:46:39 +02:00
|
|
|
// The base notify*() function implementation should be sufficient
|
|
|
|
|
// in most cases, but engines are free to override them to do some
|
|
|
|
|
// engine specific cleanup like stopping timers etc.
|
|
|
|
|
virtual void notifyEngineSetupOk();
|
|
|
|
|
virtual void notifyEngineSetupFailed();
|
|
|
|
|
virtual void notifyEngineRunFailed();
|
2010-06-16 11:08:54 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyInferiorSetupOk();
|
|
|
|
|
virtual void notifyInferiorSetupFailed();
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyEngineRunAndInferiorRunOk();
|
|
|
|
|
virtual void notifyEngineRunAndInferiorStopOk();
|
|
|
|
|
virtual void notifyInferiorUnrunnable(); // Called by CoreAdapter.
|
2010-07-13 08:41:27 +02:00
|
|
|
|
|
|
|
|
// Use notifyInferiorRunRequested() plus notifyInferiorRunOk() instead.
|
2010-08-11 09:46:39 +02:00
|
|
|
//virtual void notifyInferiorSpontaneousRun();
|
2010-07-09 17:07:59 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyInferiorRunRequested();
|
|
|
|
|
virtual void notifyInferiorRunOk();
|
|
|
|
|
virtual void notifyInferiorRunFailed();
|
2010-07-09 17:07:59 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyInferiorStopOk();
|
|
|
|
|
virtual void notifyInferiorSpontaneousStop();
|
|
|
|
|
virtual void notifyInferiorStopFailed();
|
|
|
|
|
virtual void notifyInferiorExited();
|
2010-07-09 17:07:59 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyInferiorShutdownOk();
|
|
|
|
|
virtual void notifyInferiorShutdownFailed();
|
2010-07-09 17:07:59 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyEngineSpontaneousShutdown();
|
|
|
|
|
virtual void notifyEngineShutdownOk();
|
|
|
|
|
virtual void notifyEngineShutdownFailed();
|
2010-07-09 08:48:33 +02:00
|
|
|
|
2010-08-11 09:46:39 +02:00
|
|
|
virtual void notifyInferiorIll();
|
|
|
|
|
virtual void notifyEngineIll();
|
2010-07-09 08:48:33 +02:00
|
|
|
|
2010-07-09 17:07:59 +02:00
|
|
|
virtual void setupEngine() = 0;
|
|
|
|
|
virtual void setupInferior() = 0;
|
|
|
|
|
virtual void runEngine() = 0;
|
|
|
|
|
virtual void shutdownInferior() = 0;
|
|
|
|
|
virtual void shutdownEngine() = 0;
|
2010-07-08 18:10:50 +02:00
|
|
|
|
2011-01-12 13:43:23 +01:00
|
|
|
virtual void detachDebugger();
|
|
|
|
|
virtual void exitDebugger();
|
|
|
|
|
virtual void executeStep();
|
|
|
|
|
virtual void executeStepOut() ;
|
|
|
|
|
virtual void executeNext();
|
|
|
|
|
virtual void executeStepI();
|
|
|
|
|
virtual void executeNextI();
|
|
|
|
|
virtual void executeReturn();
|
|
|
|
|
|
|
|
|
|
virtual void continueInferior();
|
|
|
|
|
virtual void interruptInferior();
|
|
|
|
|
virtual void requestInterruptInferior();
|
|
|
|
|
|
|
|
|
|
virtual void executeRunToLine(const QString &fileName, int lineNumber);
|
|
|
|
|
virtual void executeRunToFunction(const QString &functionName);
|
|
|
|
|
virtual void executeJumpToLine(const QString &fileName, int lineNumber);
|
|
|
|
|
virtual void executeDebuggerCommand(const QString &command);
|
|
|
|
|
|
|
|
|
|
virtual void frameUp();
|
|
|
|
|
virtual void frameDown();
|
|
|
|
|
|
2010-12-10 10:01:29 +01:00
|
|
|
DebuggerRunControl *runControl() const; // FIXME: Protect.
|
2010-07-08 15:06:09 +02:00
|
|
|
|
2010-11-26 09:58:34 +01:00
|
|
|
static QString msgWatchpointTriggered(BreakpointId id,
|
|
|
|
|
int number, quint64 address);
|
|
|
|
|
static QString msgWatchpointTriggered(BreakpointId id,
|
|
|
|
|
int number, quint64 address, const QString &threadId);
|
|
|
|
|
static QString msgBreakpointTriggered(BreakpointId id,
|
|
|
|
|
int number, const QString &threadId);
|
2010-11-17 17:16:34 +01:00
|
|
|
static QString msgStopped(const QString &reason = QString());
|
|
|
|
|
static QString msgStoppedBySignal(const QString &meaning, const QString &name);
|
2010-11-26 09:58:34 +01:00
|
|
|
static QString msgStoppedByException(const QString &description,
|
|
|
|
|
const QString &threadId);
|
2010-11-17 17:16:34 +01:00
|
|
|
static QString msgInterrupted();
|
2010-11-26 09:58:34 +01:00
|
|
|
void showStoppedBySignalMessageBox(const QString meaning, QString name);
|
2010-11-17 17:16:34 +01:00
|
|
|
void showStoppedByExceptionMessageBox(const QString &description);
|
|
|
|
|
|
2010-11-26 13:06:03 +01:00
|
|
|
static bool isCppBreakpoint(const Internal::BreakpointParameters &p);
|
|
|
|
|
|
2010-06-22 17:18:29 +02:00
|
|
|
private:
|
2010-11-18 17:37:56 +01:00
|
|
|
// Wrapper engine needs access to state of its subengines.
|
2010-12-03 12:07:32 +01:00
|
|
|
friend class Internal::QmlCppEngine;
|
2011-01-12 13:43:23 +01:00
|
|
|
friend class Internal::DebuggerPluginPrivate;
|
|
|
|
|
|
2010-11-18 17:37:56 +01:00
|
|
|
void setState(DebuggerState state, bool forced = false);
|
|
|
|
|
|
2010-07-08 18:10:50 +02:00
|
|
|
friend class DebuggerEnginePrivate;
|
2010-06-16 11:08:54 +02:00
|
|
|
DebuggerEnginePrivate *d;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_DEBUGGERENGINE_H
|