2009-02-25 09:15:00 +01:00
|
|
|
/**************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2010-03-05 11:25:49 +01:00
|
|
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-06-17 00:01:27 +10:00
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** Commercial Usage
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** 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.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** GNU Lesser General Public License Usage
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** 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.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** If you are unsure which license is appropriate for your use, please
|
2009-08-14 09:30:56 +02:00
|
|
|
** contact the sales department at http://qt.nokia.com/contact.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
**************************************************************************/
|
2008-12-02 15:08:31 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#ifndef DEBUGGER_DEBUGGERMANAGER_H
|
|
|
|
|
#define DEBUGGER_DEBUGGERMANAGER_H
|
|
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
#include "debugger_global.h"
|
2009-09-25 08:35:31 +02:00
|
|
|
#include "debuggerconstants.h"
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#include <QtCore/QObject>
|
2009-09-25 15:02:16 +02:00
|
|
|
#include <QtCore/QSharedPointer>
|
2008-12-02 12:01:29 +01:00
|
|
|
#include <QtCore/QStringList>
|
|
|
|
|
#include <QtCore/QVariant>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
2009-12-11 16:59:34 +01:00
|
|
|
class QAbstractItemModel;
|
2008-12-02 12:01:29 +01:00
|
|
|
class QAction;
|
2009-12-11 16:59:34 +01:00
|
|
|
class QDebug;
|
2008-12-02 12:01:29 +01:00
|
|
|
class QDockWidget;
|
2008-12-08 14:26:11 +01:00
|
|
|
class QLabel;
|
2009-12-11 16:59:34 +01:00
|
|
|
class QMessageBox;
|
2009-09-25 15:02:16 +02:00
|
|
|
class QPoint;
|
2010-02-10 10:47:34 +01:00
|
|
|
class QIcon;
|
2008-12-02 12:01:29 +01:00
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2009-04-17 09:03:32 +02:00
|
|
|
namespace Core {
|
2009-05-08 15:37:41 +02:00
|
|
|
class IOptionsPage;
|
2009-10-05 11:06:05 +02:00
|
|
|
}
|
2009-04-17 09:03:32 +02:00
|
|
|
|
2009-05-14 14:29:37 +02:00
|
|
|
namespace TextEditor {
|
2009-06-19 12:04:21 +02:00
|
|
|
class ITextEditor;
|
2010-02-12 14:15:20 +01:00
|
|
|
class FontSettings;
|
2009-05-14 14:29:37 +02:00
|
|
|
}
|
|
|
|
|
|
2009-10-16 16:26:28 +02:00
|
|
|
namespace CPlusPlus {
|
|
|
|
|
class Snapshot;
|
|
|
|
|
}
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class DebuggerOutputWindow;
|
|
|
|
|
class DebuggerPlugin;
|
|
|
|
|
|
|
|
|
|
class BreakHandler;
|
2009-06-24 12:31:09 +02:00
|
|
|
class BreakpointData;
|
2008-12-02 12:01:29 +01:00
|
|
|
class ModulesHandler;
|
|
|
|
|
class RegisterHandler;
|
2009-06-24 12:31:09 +02:00
|
|
|
class SourceFilesWindow;
|
2009-08-17 16:03:27 +02:00
|
|
|
struct StackFrame;
|
2008-12-02 12:01:29 +01:00
|
|
|
class StackHandler;
|
2009-06-24 12:31:09 +02:00
|
|
|
class Symbol;
|
2010-02-02 17:25:14 +01:00
|
|
|
class SnapshotHandler;
|
2008-12-02 12:01:29 +01:00
|
|
|
class ThreadsHandler;
|
|
|
|
|
class WatchData;
|
2009-06-24 12:31:09 +02:00
|
|
|
class WatchHandler;
|
2009-09-25 15:02:16 +02:00
|
|
|
class IDebuggerEngine;
|
|
|
|
|
class GdbEngine;
|
|
|
|
|
class ScriptEngine;
|
2010-04-27 08:52:17 +02:00
|
|
|
class PdbEngine;
|
2009-09-25 15:02:16 +02:00
|
|
|
class CdbDebugEngine;
|
2010-01-22 17:15:33 +01:00
|
|
|
class CdbDebugEnginePrivate;
|
2009-09-25 15:02:16 +02:00
|
|
|
struct DebuggerManagerActions;
|
2009-09-25 16:01:28 +02:00
|
|
|
class CdbDebugEventCallback;
|
|
|
|
|
class CdbDumperHelper;
|
2009-10-14 11:38:40 +02:00
|
|
|
class CdbDumperInitThread;
|
2009-09-25 16:01:28 +02:00
|
|
|
class CdbExceptionLoggerEventCallback;
|
|
|
|
|
class GdbEngine;
|
|
|
|
|
class CdbDebugEngine;
|
2010-01-22 17:15:33 +01:00
|
|
|
class CdbDebugEnginePrivate;
|
2010-02-04 11:36:49 +01:00
|
|
|
class TrkGdbAdapter;
|
2010-02-10 10:47:34 +01:00
|
|
|
class BreakpointMarker;
|
2009-09-25 16:01:28 +02:00
|
|
|
} // namespace Internal
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
class DEBUGGER_EXPORT DebuggerStartParameters
|
2009-06-12 12:57:22 +02:00
|
|
|
{
|
2009-08-14 13:04:05 +02:00
|
|
|
public:
|
2009-05-25 16:22:11 +02:00
|
|
|
DebuggerStartParameters();
|
|
|
|
|
void clear();
|
|
|
|
|
|
|
|
|
|
QString executable;
|
|
|
|
|
QString coreFile;
|
|
|
|
|
QStringList processArgs;
|
|
|
|
|
QStringList environment;
|
|
|
|
|
QString workingDir;
|
|
|
|
|
QString buildDir;
|
|
|
|
|
qint64 attachPID;
|
|
|
|
|
bool useTerminal;
|
2009-05-26 16:27:24 +02:00
|
|
|
QString crashParameter; // for AttachCrashedExternal
|
2009-05-25 16:22:11 +02:00
|
|
|
// for remote debugging
|
|
|
|
|
QString remoteChannel;
|
|
|
|
|
QString remoteArchitecture;
|
2009-09-29 13:49:35 +02:00
|
|
|
QString symbolFileName;
|
2009-05-25 16:22:11 +02:00
|
|
|
QString serverStartScript;
|
2009-10-16 16:16:24 +02:00
|
|
|
QString sysRoot;
|
2009-10-16 17:33:12 +02:00
|
|
|
QString debuggerCommand;
|
2009-06-18 15:16:18 +02:00
|
|
|
int toolChainType;
|
2009-10-16 17:33:12 +02:00
|
|
|
QString remoteDumperLib;
|
2009-11-09 16:25:24 +01:00
|
|
|
QString qtInstallPath;
|
2009-09-17 11:48:39 +02:00
|
|
|
|
|
|
|
|
QString dumperLibrary;
|
|
|
|
|
QStringList dumperLibraryLocations;
|
2009-09-17 13:11:18 +02:00
|
|
|
DebuggerStartMode startMode;
|
2009-05-25 16:22:11 +02:00
|
|
|
};
|
|
|
|
|
|
2009-09-17 13:11:18 +02:00
|
|
|
typedef QSharedPointer<DebuggerStartParameters> DebuggerStartParametersPtr;
|
2009-09-25 16:01:28 +02:00
|
|
|
|
|
|
|
|
DEBUGGER_EXPORT QDebug operator<<(QDebug str, const DebuggerStartParameters &);
|
2009-05-25 16:22:11 +02:00
|
|
|
|
|
|
|
|
// Flags for initialization
|
2009-09-10 13:09:42 +02:00
|
|
|
enum DebuggerEngineTypeFlags
|
|
|
|
|
{
|
|
|
|
|
GdbEngineType = 0x01,
|
|
|
|
|
ScriptEngineType = 0x02,
|
|
|
|
|
CdbEngineType = 0x04,
|
2010-04-27 08:52:17 +02:00
|
|
|
PdbEngineType = 0x08,
|
2009-09-10 13:09:42 +02:00
|
|
|
AllEngineTypes = GdbEngineType
|
2010-01-29 21:33:57 +01:00
|
|
|
| ScriptEngineType
|
|
|
|
|
| CdbEngineType
|
2010-04-27 08:52:17 +02:00
|
|
|
| PdbEngineType
|
2009-05-25 16:22:11 +02:00
|
|
|
};
|
|
|
|
|
|
2009-09-25 08:35:31 +02:00
|
|
|
QDebug operator<<(QDebug d, DebuggerState state);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
//
|
2009-09-25 08:35:31 +02:00
|
|
|
// DebuggerManager
|
2008-12-02 12:01:29 +01:00
|
|
|
//
|
|
|
|
|
|
2009-09-25 15:02:16 +02:00
|
|
|
struct DebuggerManagerPrivate;
|
|
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
class DEBUGGER_EXPORT DebuggerManager : public QObject
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
2009-09-25 08:35:31 +02:00
|
|
|
Q_OBJECT
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-09-25 08:35:31 +02:00
|
|
|
public:
|
2010-03-10 13:46:05 +01:00
|
|
|
explicit DebuggerManager(Internal::DebuggerPlugin *plugin);
|
2009-09-25 08:35:31 +02:00
|
|
|
~DebuggerManager();
|
2009-05-25 16:22:11 +02:00
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
friend class Internal::IDebuggerEngine;
|
|
|
|
|
friend class Internal::DebuggerPlugin;
|
|
|
|
|
friend class Internal::CdbDebugEventCallback;
|
|
|
|
|
friend class Internal::CdbDumperHelper;
|
2009-10-14 11:38:40 +02:00
|
|
|
friend class Internal::CdbDumperInitThread;
|
2009-09-25 16:01:28 +02:00
|
|
|
friend class Internal::CdbExceptionLoggerEventCallback;
|
|
|
|
|
friend class Internal::GdbEngine;
|
|
|
|
|
friend class Internal::ScriptEngine;
|
2010-04-27 08:52:17 +02:00
|
|
|
friend class Internal::PdbEngine;
|
2009-09-25 16:01:28 +02:00
|
|
|
friend class Internal::CdbDebugEngine;
|
2010-01-22 17:15:33 +01:00
|
|
|
friend class Internal::CdbDebugEnginePrivate;
|
2010-02-04 11:36:49 +01:00
|
|
|
friend class Internal::TrkGdbAdapter;
|
2010-02-10 10:47:34 +01:00
|
|
|
friend class Internal::BreakpointMarker;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-09-28 12:00:37 +02:00
|
|
|
DebuggerState state() const;
|
2009-05-25 16:22:11 +02:00
|
|
|
QList<Core::IOptionsPage*> initializeEngines(unsigned enabledTypeFlags);
|
2009-04-17 09:03:32 +02:00
|
|
|
|
2009-09-25 15:02:16 +02:00
|
|
|
QLabel *statusLabel() const;
|
2009-09-25 16:01:28 +02:00
|
|
|
Internal::IDebuggerEngine *currentEngine() const;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-09-25 15:02:16 +02:00
|
|
|
DebuggerStartParametersPtr startParameters() const;
|
|
|
|
|
qint64 inferiorPid() const;
|
2009-09-14 11:02:36 +02:00
|
|
|
|
2009-12-11 16:59:34 +01:00
|
|
|
QMessageBox *showMessageBox(int icon, const QString &title, const QString &text,
|
|
|
|
|
int buttons = 0);
|
2009-09-23 09:54:21 +02:00
|
|
|
|
2009-10-07 13:36:48 +02:00
|
|
|
bool debuggerActionsEnabled() const;
|
2010-02-05 10:23:55 +01:00
|
|
|
unsigned debuggerCapabilities() const;
|
2009-10-07 13:36:48 +02:00
|
|
|
|
2009-10-08 17:23:27 +02:00
|
|
|
bool checkDebugConfiguration(int toolChain,
|
|
|
|
|
QString *errorMessage,
|
|
|
|
|
QString *settingsCategory = 0,
|
|
|
|
|
QString *settingsPage = 0) const;
|
|
|
|
|
|
2009-10-16 16:26:28 +02:00
|
|
|
const CPlusPlus::Snapshot &cppCodeModelSnapshot() const;
|
|
|
|
|
|
2010-02-10 10:47:34 +01:00
|
|
|
QIcon locationMarkIcon() const;
|
|
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
static DebuggerManager *instance();
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
public slots:
|
2009-09-17 13:11:18 +02:00
|
|
|
void startNewDebugger(const DebuggerStartParametersPtr &sp);
|
2009-05-25 16:22:11 +02:00
|
|
|
void exitDebugger();
|
2010-04-09 13:16:21 +02:00
|
|
|
void abortDebugger();
|
2009-05-25 16:22:11 +02:00
|
|
|
|
2010-02-09 20:44:40 +01:00
|
|
|
void setSimpleDockWidgetArrangement(const QString &activeLanguage);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
void setBusyCursor(bool on);
|
|
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
void gotoLocation(const Debugger::Internal::StackFrame &frame, bool setLocationMarker);
|
2009-03-10 19:35:17 +01:00
|
|
|
void fileOpen(const QString &file);
|
2008-12-02 12:01:29 +01:00
|
|
|
void resetLocation();
|
|
|
|
|
|
|
|
|
|
void interruptDebuggingRequest();
|
|
|
|
|
|
2010-03-10 16:17:40 +01:00
|
|
|
void executeJumpToLine();
|
|
|
|
|
void executeRunToLine();
|
|
|
|
|
void executeRunToFunction();
|
2008-12-02 12:01:29 +01:00
|
|
|
void breakByFunction(const QString &functionName);
|
2009-06-12 12:57:22 +02:00
|
|
|
void breakByFunctionMain();
|
2008-12-02 12:01:29 +01:00
|
|
|
void activateFrame(int index);
|
|
|
|
|
void selectThread(int index);
|
2010-02-02 17:25:14 +01:00
|
|
|
void activateSnapshot(int index);
|
|
|
|
|
void removeSnapshot(int index);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-03-10 16:17:40 +01:00
|
|
|
void executeStep();
|
|
|
|
|
void executeStepOut();
|
|
|
|
|
void executeStepNext();
|
|
|
|
|
void executeContinue();
|
|
|
|
|
void executeReturn();
|
2009-05-07 15:20:44 +02:00
|
|
|
void detachDebugger();
|
2010-02-02 17:25:14 +01:00
|
|
|
void makeSnapshot();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
void addToWatchWindow();
|
2009-09-25 16:01:28 +02:00
|
|
|
void updateWatchData(const Debugger::Internal::WatchData &data);
|
2009-05-25 16:22:11 +02:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
void sessionLoaded();
|
2009-08-13 17:10:53 +02:00
|
|
|
void aboutToUnloadSession();
|
2008-12-02 12:01:29 +01:00
|
|
|
void aboutToSaveSession();
|
2009-08-14 13:04:05 +02:00
|
|
|
QVariant sessionValue(const QString &name);
|
|
|
|
|
void setSessionValue(const QString &name, const QVariant &value);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-03-19 15:24:18 +01:00
|
|
|
void assignValueInDebugger();
|
2008-12-02 12:01:29 +01:00
|
|
|
void assignValueInDebugger(const QString &expr, const QString &value);
|
2009-04-03 15:46:40 +02:00
|
|
|
|
|
|
|
|
void executeDebuggerCommand();
|
2008-12-02 12:01:29 +01:00
|
|
|
void executeDebuggerCommand(const QString &command);
|
|
|
|
|
|
2009-07-01 12:49:41 +02:00
|
|
|
void watchPoint();
|
2009-08-18 08:34:48 +02:00
|
|
|
void setRegisterValue(int nr, const QString &value);
|
2009-07-01 12:49:41 +02:00
|
|
|
|
2008-12-08 14:26:11 +01:00
|
|
|
void showStatusMessage(const QString &msg, int timeout = -1); // -1 forever
|
2009-10-16 16:26:28 +02:00
|
|
|
void clearCppCodeModelSnapshot();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-10-26 18:05:11 +01:00
|
|
|
static const char *stateName(int s);
|
|
|
|
|
|
2009-10-02 11:45:19 +02:00
|
|
|
public slots: // FIXME
|
2009-09-10 13:09:42 +02:00
|
|
|
void showDebuggerOutput(const QString &msg)
|
|
|
|
|
{ showDebuggerOutput(LogDebug, msg); }
|
2010-03-18 16:55:27 +01:00
|
|
|
void ensureLogVisible();
|
2010-03-22 13:41:10 +01:00
|
|
|
void updateWatchersWindow();
|
2010-04-23 09:55:56 +02:00
|
|
|
void updateWatchersHeader(int section, int oldSize, int newSize);
|
2010-04-09 16:10:06 +02:00
|
|
|
void activateBreakpoint(int index);
|
2009-10-13 14:16:50 +02:00
|
|
|
|
2009-10-02 16:55:03 +02:00
|
|
|
//private slots: // FIXME
|
2009-06-19 12:04:21 +02:00
|
|
|
void showDebuggerOutput(int channel, const QString &msg);
|
|
|
|
|
void showDebuggerInput(int channel, const QString &msg);
|
2010-04-19 14:21:33 +02:00
|
|
|
void showApplicationOutput(const QString &data, bool onStdErr);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-02-17 14:08:49 +01:00
|
|
|
void reloadSourceFiles();
|
|
|
|
|
void sourceFilesDockToggled(bool on);
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
void reloadModules();
|
|
|
|
|
void modulesDockToggled(bool on);
|
|
|
|
|
void loadSymbols(const QString &moduleName);
|
|
|
|
|
void loadAllSymbols();
|
|
|
|
|
|
|
|
|
|
void reloadRegisters();
|
|
|
|
|
void registerDockToggled(bool on);
|
2008-12-08 14:26:11 +01:00
|
|
|
void clearStatusMessage();
|
2009-03-10 17:30:11 +01:00
|
|
|
void attemptBreakpointSynchronization();
|
2009-05-06 10:21:50 +02:00
|
|
|
void reloadFullStack();
|
2009-09-29 11:13:19 +02:00
|
|
|
void operateByInstructionTriggered();
|
2009-09-10 13:09:42 +02:00
|
|
|
void startFailed();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-04-30 14:18:10 +02:00
|
|
|
public:
|
2009-09-25 16:01:28 +02:00
|
|
|
Internal::ModulesHandler *modulesHandler() const;
|
|
|
|
|
Internal::BreakHandler *breakHandler() const;
|
|
|
|
|
Internal::RegisterHandler *registerHandler() const;
|
|
|
|
|
Internal::StackHandler *stackHandler() const;
|
|
|
|
|
Internal::ThreadsHandler *threadsHandler() const;
|
|
|
|
|
Internal::WatchHandler *watchHandler() const;
|
2010-02-02 17:25:14 +01:00
|
|
|
Internal::SnapshotHandler *snapshotHandler() const;
|
2010-04-30 14:18:10 +02:00
|
|
|
|
|
|
|
|
private:
|
2009-09-25 16:01:28 +02:00
|
|
|
Internal::SourceFilesWindow *sourceFileWindow() const;
|
2010-01-29 21:33:57 +01:00
|
|
|
QWidget *threadsWindow() const;
|
2009-10-16 16:26:28 +02:00
|
|
|
|
2009-09-25 16:01:28 +02:00
|
|
|
Internal::DebuggerManagerActions debuggerManagerActions() const;
|
2009-01-27 15:53:50 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
void notifyInferiorStopped();
|
|
|
|
|
void notifyInferiorRunning();
|
|
|
|
|
void notifyInferiorExited();
|
2009-05-25 16:22:11 +02:00
|
|
|
void notifyInferiorPidChanged(qint64);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-05-25 16:22:11 +02:00
|
|
|
void cleanupViews();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-10-20 11:02:16 +02:00
|
|
|
void setState(DebuggerState state, bool forced = false);
|
2009-09-25 08:35:31 +02:00
|
|
|
|
2009-05-25 16:22:11 +02:00
|
|
|
//
|
2008-12-02 12:01:29 +01:00
|
|
|
// internal implementation
|
2009-05-25 16:22:11 +02:00
|
|
|
//
|
2009-09-23 15:28:50 +02:00
|
|
|
bool qtDumperLibraryEnabled() const;
|
|
|
|
|
QString qtDumperLibraryName() const;
|
|
|
|
|
QStringList qtDumperLibraryLocations() const;
|
|
|
|
|
void showQtDumperLibraryWarning(const QString &details = QString());
|
|
|
|
|
bool isReverseDebugging() const;
|
|
|
|
|
QAbstractItemModel *threadsModel();
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
Q_SLOT void loadSessionData();
|
|
|
|
|
Q_SLOT void saveSessionData();
|
|
|
|
|
Q_SLOT void dumpLog();
|
2010-02-12 14:15:20 +01:00
|
|
|
Q_SLOT void fontSettingsChanged(const TextEditor::FontSettings &settings);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
public:
|
2009-05-25 16:22:11 +02:00
|
|
|
// stuff in this block should be made private by moving it to
|
2008-12-02 12:01:29 +01:00
|
|
|
// one of the interfaces
|
2010-05-03 19:12:52 +02:00
|
|
|
void requestModuleSymbols(const QString &moduleName);
|
|
|
|
|
void showModuleSymbols(const QString &moduleName,
|
|
|
|
|
const QList<Internal::Symbol> &symbols);
|
2009-04-15 12:01:58 +02:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
signals:
|
|
|
|
|
void debuggingFinished();
|
|
|
|
|
void inferiorPidChanged(qint64 pid);
|
2009-09-25 08:35:31 +02:00
|
|
|
void stateChanged(int newstatus);
|
2008-12-02 12:01:29 +01:00
|
|
|
void statusMessageRequested(const QString &msg, int timeout); // -1 for 'forever'
|
2010-04-19 14:21:33 +02:00
|
|
|
void applicationOutputAvailable(const QString &output, bool onStdErr);
|
|
|
|
|
void messageAvailable(const QString &output, bool isError);
|
2009-10-09 16:35:52 +02:00
|
|
|
void emitShowOutput(int channel, const QString &output);
|
|
|
|
|
void emitShowInput(int channel, const QString &input);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
private:
|
2009-04-17 09:03:32 +02:00
|
|
|
void init();
|
2009-04-06 16:30:11 +02:00
|
|
|
void runTest(const QString &fileName);
|
2009-03-12 14:17:32 +01:00
|
|
|
Q_SLOT void createNewDock(QWidget *widget);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-04-28 16:59:03 +02:00
|
|
|
void aboutToShutdown();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
void toggleBreakpoint(const QString &fileName, int lineNumber);
|
2009-09-25 16:01:28 +02:00
|
|
|
Internal::BreakpointData *findBreakpoint(const QString &fileName, int lineNumber);
|
2009-09-25 08:35:31 +02:00
|
|
|
void setToolTipExpression(const QPoint &mousePos,
|
|
|
|
|
TextEditor::ITextEditor *editor, int cursorPos);
|
2010-03-29 18:44:02 +02:00
|
|
|
void openTextEditor(const QString &titlePattern,
|
|
|
|
|
const QString &contents);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-09-25 15:02:16 +02:00
|
|
|
DebuggerManagerPrivate *d;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_DEBUGGERMANAGER_H
|