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
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2012-06-29 07:23:13 +02:00
|
|
|
|
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>
|
|
|
|
|
|
2017-04-27 09:53:07 +02:00
|
|
|
namespace Debugger { class DebuggerRunTool; }
|
2012-06-29 07:23:13 +02:00
|
|
|
|
|
|
|
|
namespace Qnx {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
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:
|
2017-03-28 17:19:05 +02:00
|
|
|
explicit QnxDebugSupport(ProjectExplorer::RunControl *runControl);
|
2012-06-29 07:23:13 +02:00
|
|
|
|
|
|
|
|
void handleDebuggingFinished();
|
|
|
|
|
|
2017-03-28 17:19:05 +02:00
|
|
|
private:
|
2016-04-19 12:09:09 +02:00
|
|
|
void handleAdapterSetupRequested() override;
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2016-04-19 12:09:09 +02:00
|
|
|
void handleRemoteProcessStarted() override;
|
|
|
|
|
void handleRemoteProcessFinished(bool success) override;
|
|
|
|
|
void handleProgressReport(const QString &progressOutput) override;
|
|
|
|
|
void handleRemoteOutput(const QByteArray &output) override;
|
|
|
|
|
void handleError(const QString &error) override;
|
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);
|
|
|
|
|
|
2016-04-19 12:09:09 +02:00
|
|
|
void startExecution() override;
|
2012-06-29 07:23:13 +02:00
|
|
|
|
2017-04-27 09:53:07 +02:00
|
|
|
Debugger::DebuggerRunTool *toolRunner();
|
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;
|
|
|
|
|
|
2016-04-19 16:43:30 +02:00
|
|
|
Utils::Port m_pdebugPort;
|
|
|
|
|
Utils::Port m_qmlPort;
|
2013-03-28 08:14:09 +01:00
|
|
|
|
|
|
|
|
bool m_useCppDebugger;
|
|
|
|
|
bool m_useQmlDebugger;
|
2012-06-29 07:23:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Qnx
|