2012-06-29 07:23:13 +02:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
2014-01-07 13:27:11 +01:00
|
|
|
** Copyright (C) 2012 - 2014 BlackBerry Limited. All rights reserved.
|
2012-06-29 07:23:13 +02:00
|
|
|
**
|
2013-10-11 17:44:13 +02:00
|
|
|
** Contact: BlackBerry (qt@blackberry.com)
|
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
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
2014-10-01 13:21:18 +02:00
|
|
|
** conditions see http://www.qt.io/licensing. For further information
|
|
|
|
|
** use the contact form at http://www.qt.io/contact-us.
|
2012-06-29 07:23:13 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
** 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
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2012-06-29 07:23:13 +02:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
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
|
|
|
|
2013-11-05 14:29:05 +01:00
|
|
|
#include <utils/outputformat.h>
|
|
|
|
|
|
2012-07-26 09:02:34 +02:00
|
|
|
namespace Debugger { class DebuggerEngine; }
|
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
|
|
|
|
|
public:
|
|
|
|
|
explicit QnxDebugSupport(QnxRunConfiguration *runConfig,
|
|
|
|
|
Debugger::DebuggerEngine *engine);
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
2013-03-28 08:14:09 +01:00
|
|
|
QString executable() const;
|
|
|
|
|
|
2013-11-01 15:39:59 +01:00
|
|
|
void killInferiorProcess();
|
|
|
|
|
|
2013-11-05 14:29:05 +01:00
|
|
|
Slog2InfoRunner *m_slog2Info;
|
|
|
|
|
|
2012-06-29 07:23:13 +02:00
|
|
|
Debugger::DebuggerEngine *m_engine;
|
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
|