2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** Copyright (C) 2015 The Qt Company Ltd.
|
|
|
|
|
** Contact: http://www.qt.io/licensing
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2015-01-14 18:07:15 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms and
|
|
|
|
|
** conditions see http://www.qt.io/terms-conditions. For further information
|
2014-10-01 13:21:18 +02:00
|
|
|
** use the contact form at http://www.qt.io/contact-us.
|
2011-01-07 09:44:23 +01:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
2014-10-01 13:21:18 +02:00
|
|
|
** General Public License version 2.1 or version 3 as published by the Free
|
|
|
|
|
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
|
|
|
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
|
|
|
** following information to ensure the GNU Lesser General Public License
|
|
|
|
|
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2012-10-02 09:12:39 +02:00
|
|
|
**
|
2015-01-14 18:07:15 +01:00
|
|
|
** In addition, as a special exception, The Qt Company gives you certain additional
|
|
|
|
|
** rights. These rights are described in The Qt Company LGPL Exception
|
2011-01-07 09:44:23 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
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-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>
|
2015-02-10 13:21:22 +01:00
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2015-06-12 11:37:46 +02:00
|
|
|
#include <projectexplorer/devicesupport/idevice.h>
|
2011-01-07 09:44:23 +01:00
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QMetaType>
|
2015-02-10 10:17:46 +02:00
|
|
|
#include <QVector>
|
2015-02-26 15:29:28 +01:00
|
|
|
#include <QPointer>
|
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.
|
|
|
|
|
|
2014-09-18 19:21:27 +02:00
|
|
|
const int InvalidPort = -1;
|
2015-09-11 13:13:04 +02:00
|
|
|
const qint64 InvalidPid = -1;
|
2014-09-18 19:21:27 +02:00
|
|
|
|
|
|
|
|
class DEBUGGER_EXPORT RemoteSetupResult
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
RemoteSetupResult()
|
|
|
|
|
: gdbServerPort(InvalidPort),
|
|
|
|
|
qmlServerPort(InvalidPort),
|
|
|
|
|
inferiorPid(InvalidPid),
|
|
|
|
|
success(false)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
int gdbServerPort;
|
|
|
|
|
int qmlServerPort;
|
2015-09-11 13:13:04 +02:00
|
|
|
qint64 inferiorPid;
|
2014-09-18 19:21:27 +02:00
|
|
|
bool success;
|
|
|
|
|
QString reason;
|
|
|
|
|
};
|
|
|
|
|
|
2011-01-07 09:44:23 +01:00
|
|
|
class DEBUGGER_EXPORT DebuggerStartParameters
|
|
|
|
|
{
|
|
|
|
|
public:
|
2015-06-26 13:06:08 +02:00
|
|
|
DebuggerStartParameters() {}
|
2011-01-07 09:44:23 +01:00
|
|
|
|
2015-06-26 13:06:08 +02:00
|
|
|
DebuggerStartMode startMode = NoStartMode;
|
|
|
|
|
DebuggerCloseMode closeMode = KillAtClose;
|
2012-06-28 10:00:04 +02:00
|
|
|
|
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.
|
2011-01-07 09:44:23 +01:00
|
|
|
QString processArgs;
|
|
|
|
|
Utils::Environment environment;
|
|
|
|
|
QString workingDirectory;
|
2015-06-26 13:06:08 +02:00
|
|
|
qint64 attachPID = InvalidPid;
|
|
|
|
|
QStringList solibSearchPath;
|
|
|
|
|
bool useTerminal = false;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
|
|
|
|
// Used by Qml debugging.
|
|
|
|
|
QString qmlServerAddress;
|
|
|
|
|
quint16 qmlServerPort;
|
|
|
|
|
|
2015-06-26 13:06:08 +02:00
|
|
|
// Used by general remote debugging.
|
2011-01-07 09:44:23 +01:00
|
|
|
QString remoteChannel;
|
2012-05-18 10:49:35 +02:00
|
|
|
QSsh::SshConnectionParameters connParams;
|
2015-06-26 13:06:08 +02:00
|
|
|
bool remoteSetupNeeded = false;
|
2011-01-07 09:44:23 +01:00
|
|
|
|
2015-09-23 12:45:09 +02:00
|
|
|
// Used by Mer plugin (3rd party)
|
|
|
|
|
QMap<QString, QString> sourcePathMap;
|
|
|
|
|
|
2013-09-12 18:46:35 +02:00
|
|
|
// Used by baremetal plugin
|
2014-06-05 17:22:51 +02:00
|
|
|
QByteArray commandsForReset; // commands used for resetting the inferior
|
2015-06-26 13:06:08 +02:00
|
|
|
bool useContinueInsteadOfRun = false; // if connected to a hw debugger run is not possible but continue is used
|
2013-09-12 18:46:35 +02:00
|
|
|
QByteArray commandsAfterConnect; // additional commands to post after connection to debug target
|
|
|
|
|
|
2015-02-10 10:17:46 +02:00
|
|
|
// Used by Valgrind
|
|
|
|
|
QVector<QByteArray> expectedSignals;
|
|
|
|
|
|
2012-06-29 07:23:13 +02:00
|
|
|
// For QNX debugging
|
|
|
|
|
QString remoteExecutable;
|
2015-06-26 13:06:08 +02:00
|
|
|
bool useCtrlCStub = false;
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2015-03-31 07:55:00 +02:00
|
|
|
// Used by Android to avoid false positives on warnOnRelease
|
2015-06-26 13:06:08 +02:00
|
|
|
bool skipExecutableValidation = false;
|
|
|
|
|
QStringList additionalSearchDirectories;
|
|
|
|
|
|
|
|
|
|
// Used by iOS.
|
|
|
|
|
QString platform;
|
|
|
|
|
QString deviceSymbolsRoot;
|
|
|
|
|
bool continueAfterAttach = false;
|
2011-01-07 09:44:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
2014-09-18 19:21:27 +02:00
|
|
|
Q_DECLARE_METATYPE(Debugger::RemoteSetupResult)
|
2011-01-07 09:44:23 +01:00
|
|
|
Q_DECLARE_METATYPE(Debugger::DebuggerStartParameters)
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_DEBUGGERSTARTPARAMETERS_H
|
|
|
|
|
|