2011-01-07 09:44:23 +01: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).
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Contact: Nokia Corporation (info@qt.nokia.com)
|
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
|
|
|
** If you have questions regarding the use of this file, please contact
|
2011-05-06 15:05:37 +02:00
|
|
|
** Nokia at info@qt.nokia.com.
|
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
|
|
|
|
2011-02-14 16:34:17 +01:00
|
|
|
#include <utils/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
|
|
|
|
|
|
|
|
#include <QtCore/QMetaType>
|
|
|
|
|
|
|
|
|
|
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-04-13 15:47:13 +02:00
|
|
|
enum SymbianDebugClient {
|
|
|
|
|
SymbianDebugClientCoda
|
2011-01-25 09:18:45 +01:00
|
|
|
};
|
|
|
|
|
|
2011-01-07 09:44:23 +01:00
|
|
|
DebuggerStartParameters()
|
|
|
|
|
: isSnapshot(false),
|
|
|
|
|
attachPID(-1),
|
|
|
|
|
useTerminal(false),
|
2011-05-02 18:22:32 +02:00
|
|
|
breakOnMain(false),
|
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),
|
2011-01-07 09:44:23 +01:00
|
|
|
useServerStartScript(false),
|
2011-02-14 16:34:17 +01:00
|
|
|
connParams(Utils::SshConnectionParameters::NoProxy),
|
2011-01-07 09:44:23 +01:00
|
|
|
startMode(NoStartMode),
|
2011-01-07 15:47:22 +01:00
|
|
|
executableUid(0),
|
2011-04-13 15:47:13 +02:00
|
|
|
communicationChannel(CommunicationChannelTcpIp),
|
2011-01-25 09:18:45 +01:00
|
|
|
serverPort(0),
|
2011-06-09 14:45:08 +02:00
|
|
|
debugClient(SymbianDebugClientCoda)
|
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;
|
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
|
|
|
|
2011-03-18 10:02:07 +01:00
|
|
|
QString qtInstallPath;
|
2011-01-07 09:44:23 +01:00
|
|
|
// Used by remote debugging.
|
|
|
|
|
QString remoteChannel;
|
|
|
|
|
QString remoteArchitecture;
|
|
|
|
|
QString gnuTarget;
|
|
|
|
|
QString symbolFileName;
|
|
|
|
|
bool useServerStartScript;
|
|
|
|
|
QString serverStartScript;
|
2011-05-30 12:56:26 +02:00
|
|
|
QString sysroot;
|
2011-09-14 17:01:57 +02:00
|
|
|
QString debugInfoLocation;
|
2011-09-16 11:04:11 +02:00
|
|
|
QStringList debugSourceLocation;
|
2011-01-07 09:44:23 +01:00
|
|
|
QByteArray remoteDumperLib;
|
|
|
|
|
QByteArray remoteSourcesDir;
|
|
|
|
|
QString remoteMountPoint;
|
|
|
|
|
QString localMountDir;
|
2011-02-14 16:34:17 +01:00
|
|
|
Utils::SshConnectionParameters connParams;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
QString debuggerCommand;
|
2011-02-01 18:36:00 +01:00
|
|
|
ProjectExplorer::Abi toolChainAbi;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
QString dumperLibrary;
|
|
|
|
|
QStringList dumperLibraryLocations;
|
|
|
|
|
DebuggerStartMode startMode;
|
|
|
|
|
|
|
|
|
|
// For Symbian debugging.
|
|
|
|
|
quint32 executableUid;
|
2011-01-07 15:47:22 +01:00
|
|
|
CommunicationChannel communicationChannel;
|
|
|
|
|
QString serverAddress;
|
|
|
|
|
quint16 serverPort;
|
2011-04-13 15:47:13 +02:00
|
|
|
SymbianDebugClient debugClient;
|
2011-01-07 09:44:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(Debugger::DebuggerStartParameters)
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_DEBUGGERSTARTPARAMETERS_H
|
|
|
|
|
|