2016-01-15 14:57:40 +01:00
|
|
|
/****************************************************************************
|
2012-06-29 07:23:13 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
2012-06-29 07:23:13 +02:00
|
|
|
** Contact: KDAB (info@kdab.com)
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2012-06-29 07:23:13 +02: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
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2012-10-02 09:12:39 +02:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2012-06-29 07:23:13 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2012-06-29 07:23:13 +02:00
|
|
|
|
|
|
|
|
#ifndef QNX_INTERNAL_QNXDEBUGSUPPORT_H
|
|
|
|
|
#define QNX_INTERNAL_QNXDEBUGSUPPORT_H
|
|
|
|
|
|
2013-05-07 11:05:22 +02:00
|
|
|
#include "qnxabstractrunsupport.h"
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2016-01-26 15:53:26 +01:00
|
|
|
#include <projectexplorer/runnables.h>
|
|
|
|
|
|
2013-11-05 14:29:05 +01:00
|
|
|
#include <utils/outputformat.h>
|
|
|
|
|
|
2014-12-12 15:33:16 +01:00
|
|
|
namespace Debugger { class DebuggerRunControl; }
|
2012-06-29 07:23:13 +02:00
|
|
|
|
|
|
|
|
namespace Qnx {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class QnxRunConfiguration;
|
2013-11-05 14:29:05 +01:00
|
|
|
class Slog2InfoRunner;
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2013-05-07 11:05:22 +02:00
|
|
|
class QnxDebugSupport : public QnxAbstractRunSupport
|
2012-06-29 07:23:13 +02:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2014-12-12 15:33:16 +01:00
|
|
|
|
2012-06-29 07:23:13 +02:00
|
|
|
public:
|
2014-12-12 15:33:16 +01:00
|
|
|
QnxDebugSupport(QnxRunConfiguration *runConfig,
|
|
|
|
|
Debugger::DebuggerRunControl *runControl);
|
2012-06-29 07:23:13 +02:00
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void handleDebuggingFinished();
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void handleAdapterSetupRequested();
|
|
|
|
|
|
|
|
|
|
void handleRemoteProcessStarted();
|
2012-07-26 09:02:34 +02:00
|
|
|
void handleRemoteProcessFinished(bool success);
|
2012-06-29 07:23:13 +02:00
|
|
|
void handleProgressReport(const QString &progressOutput);
|
|
|
|
|
void handleRemoteOutput(const QByteArray &output);
|
2012-07-26 09:02:34 +02:00
|
|
|
void handleError(const QString &error);
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2013-11-05 14:29:05 +01:00
|
|
|
void printMissingWarning();
|
|
|
|
|
void handleApplicationOutput(const QString &msg, Utils::OutputFormat outputFormat);
|
|
|
|
|
|
2012-06-29 07:23:13 +02:00
|
|
|
private:
|
2012-07-26 09:02:34 +02:00
|
|
|
void startExecution();
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2016-01-26 15:53:26 +01:00
|
|
|
QString processExecutable() const;
|
2013-03-28 08:14:09 +01:00
|
|
|
|
2013-11-01 15:39:59 +01:00
|
|
|
void killInferiorProcess();
|
|
|
|
|
|
2016-01-26 15:53:26 +01:00
|
|
|
ProjectExplorer::StandardRunnable m_runnable;
|
2013-11-05 14:29:05 +01:00
|
|
|
Slog2InfoRunner *m_slog2Info;
|
|
|
|
|
|
2014-12-12 15:33:16 +01:00
|
|
|
Debugger::DebuggerRunControl *m_runControl;
|
2013-03-28 08:14:09 +01:00
|
|
|
int m_pdebugPort;
|
|
|
|
|
int m_qmlPort;
|
|
|
|
|
|
|
|
|
|
bool m_useCppDebugger;
|
|
|
|
|
bool m_useQmlDebugger;
|
2012-06-29 07:23:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Qnx
|
|
|
|
|
|
|
|
|
|
#endif // QNX_INTERNAL_QNXDEBUGSUPPORT_H
|