2011-01-07 09:44:23 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-26 18:33:46 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** 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.
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2011-01-07 09:44:23 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef DEBUGGER_DEBUGGERSTARTPARAMETERS_H
|
|
|
|
|
#define DEBUGGER_DEBUGGERSTARTPARAMETERS_H
|
|
|
|
|
|
|
|
|
|
#include "debugger_global.h"
|
2011-01-10 10:14:23 +01:00
|
|
|
#include "debuggerconstants.h"
|
2011-01-07 09:44:23 +01:00
|
|
|
|
2012-06-28 10:00:04 +02:00
|
|
|
#include <coreplugin/id.h>
|
2012-05-18 10:49:35 +02:00
|
|
|
#include <ssh/sshconnection.h>
|
2011-01-07 09:44:23 +01:00
|
|
|
#include <utils/environment.h>
|
2011-02-01 18:36:00 +01:00
|
|
|
#include <projectexplorer/abi.h>
|
2011-09-13 17:26:02 +02:00
|
|
|
#include <projectexplorer/projectexplorerconstants.h>
|
2011-01-07 09:44:23 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QMetaType>
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
|
|
|
|
|
// Note: This is part of the "soft interface" of the debugger plugin.
|
|
|
|
|
// Do not add anything that needs implementation in a .cpp file.
|
|
|
|
|
|
|
|
|
|
class DEBUGGER_EXPORT DebuggerStartParameters
|
|
|
|
|
{
|
|
|
|
|
public:
|
2011-01-07 15:47:22 +01:00
|
|
|
enum CommunicationChannel {
|
|
|
|
|
CommunicationChannelTcpIp,
|
|
|
|
|
CommunicationChannelUsb
|
|
|
|
|
};
|
|
|
|
|
|
2011-01-07 09:44:23 +01:00
|
|
|
DebuggerStartParameters()
|
2012-08-09 01:50:26 +02:00
|
|
|
: engineType(NoEngineType),
|
|
|
|
|
isSnapshot(false),
|
2011-01-07 09:44:23 +01:00
|
|
|
attachPID(-1),
|
|
|
|
|
useTerminal(false),
|
2011-05-02 18:22:32 +02:00
|
|
|
breakOnMain(false),
|
2012-03-28 09:37:02 +02:00
|
|
|
multiProcess(false),
|
2012-02-01 09:03:05 +01:00
|
|
|
languages(AnyLanguage),
|
2011-01-07 09:44:23 +01:00
|
|
|
qmlServerAddress(QLatin1String("127.0.0.1")),
|
2011-09-13 17:26:02 +02:00
|
|
|
qmlServerPort(ProjectExplorer::Constants::QML_DEFAULT_DEBUG_SERVER_PORT),
|
2012-06-13 11:29:26 +02:00
|
|
|
remoteSetupNeeded(false),
|
2011-01-07 09:44:23 +01:00
|
|
|
startMode(NoStartMode),
|
2012-03-26 16:03:25 +02:00
|
|
|
closeMode(KillAtClose),
|
2011-01-07 15:47:22 +01:00
|
|
|
executableUid(0),
|
2011-04-13 15:47:13 +02:00
|
|
|
communicationChannel(CommunicationChannelTcpIp),
|
2012-01-25 17:28:06 +01:00
|
|
|
serverPort(0),
|
|
|
|
|
testReceiver(0),
|
|
|
|
|
testCallback(0),
|
|
|
|
|
testCase(0)
|
2011-01-07 09:44:23 +01:00
|
|
|
{}
|
|
|
|
|
|
2012-06-28 10:00:04 +02:00
|
|
|
//Core::Id profileId;
|
|
|
|
|
|
2012-08-09 01:50:26 +02:00
|
|
|
DebuggerEngineType engineType;
|
2012-06-28 10:00:04 +02:00
|
|
|
QString sysRoot;
|
|
|
|
|
QString debuggerCommand;
|
|
|
|
|
ProjectExplorer::Abi toolChainAbi;
|
|
|
|
|
|
2011-01-07 09:44:23 +01:00
|
|
|
QString executable;
|
2011-02-08 13:48:04 +01:00
|
|
|
QString displayName; // Used in the Snapshots view.
|
|
|
|
|
QString startMessage; // First status message shown.
|
2011-01-07 09:44:23 +01:00
|
|
|
QString coreFile;
|
2011-05-03 14:57:05 +02:00
|
|
|
QString overrideStartScript; // Used in attach to core and remote debugging
|
2011-01-07 09:44:23 +01:00
|
|
|
bool isSnapshot; // Set if created internally.
|
|
|
|
|
QString processArgs;
|
|
|
|
|
Utils::Environment environment;
|
|
|
|
|
QString workingDirectory;
|
|
|
|
|
qint64 attachPID;
|
|
|
|
|
bool useTerminal;
|
2011-05-02 18:22:32 +02:00
|
|
|
bool breakOnMain;
|
2012-03-28 09:37:02 +02:00
|
|
|
bool multiProcess;
|
2012-02-01 09:03:05 +01:00
|
|
|
DebuggerLanguages languages;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
// Used by AttachCrashedExternal.
|
|
|
|
|
QString crashParameter;
|
|
|
|
|
|
|
|
|
|
// Used by Qml debugging.
|
|
|
|
|
QString qmlServerAddress;
|
|
|
|
|
quint16 qmlServerPort;
|
2011-04-26 09:46:05 +02:00
|
|
|
QString projectSourceDirectory;
|
|
|
|
|
QString projectBuildDirectory;
|
|
|
|
|
QStringList projectSourceFiles;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
// Used by remote debugging.
|
|
|
|
|
QString remoteChannel;
|
|
|
|
|
QString symbolFileName;
|
|
|
|
|
QString serverStartScript;
|
2012-02-10 07:42:44 +01:00
|
|
|
QString searchPath; // Gdb "set solib-search-path"
|
2011-09-26 12:38:17 +02:00
|
|
|
QString debugInfoLocation; // Gdb "set-debug-file-directory".
|
|
|
|
|
QStringList debugSourceLocation; // Gdb "directory"
|
2011-01-07 09:44:23 +01:00
|
|
|
QByteArray remoteSourcesDir;
|
|
|
|
|
QString remoteMountPoint;
|
|
|
|
|
QString localMountDir;
|
2012-05-18 10:49:35 +02:00
|
|
|
QSsh::SshConnectionParameters connParams;
|
2012-06-13 11:29:26 +02:00
|
|
|
bool remoteSetupNeeded;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
QString dumperLibrary;
|
2012-04-18 20:30:57 +03:00
|
|
|
QStringList solibSearchPath;
|
2011-01-07 09:44:23 +01:00
|
|
|
QStringList dumperLibraryLocations;
|
|
|
|
|
DebuggerStartMode startMode;
|
2012-03-26 16:03:25 +02:00
|
|
|
DebuggerCloseMode closeMode;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
// For Symbian debugging.
|
|
|
|
|
quint32 executableUid;
|
2011-01-07 15:47:22 +01:00
|
|
|
CommunicationChannel communicationChannel;
|
|
|
|
|
QString serverAddress;
|
|
|
|
|
quint16 serverPort;
|
2012-01-25 17:28:06 +01:00
|
|
|
|
2012-06-29 07:23:13 +02:00
|
|
|
// For QNX debugging
|
|
|
|
|
QString remoteExecutable;
|
|
|
|
|
|
2012-01-25 17:28:06 +01:00
|
|
|
// For Debugger testing.
|
|
|
|
|
QObject *testReceiver;
|
|
|
|
|
const char *testCallback;
|
|
|
|
|
int testCase;
|
2011-01-07 09:44:23 +01:00
|
|
|
};
|
|
|
|
|
|
2012-06-28 10:00:04 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
void fillParameters(DebuggerStartParameters *sp, Core::Id id);
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2011-01-07 09:44:23 +01:00
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(Debugger::DebuggerStartParameters)
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_DEBUGGERSTARTPARAMETERS_H
|
|
|
|
|
|