Add support for the remote QNX debugging protocol

Change-Id: Ifb2a378cdc000eb84b65f25c2132783d3a3f53c4
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Tobias Nätterlund
2012-02-10 07:42:44 +01:00
committed by hjk
parent 9ad05c5954
commit 17c18623ef
7 changed files with 66 additions and 5 deletions

View File

@@ -409,7 +409,7 @@ QByteArray GdbResponse::toString() const
//////////////////////////////////////////////////////////////////////////////////
void extractGdbVersion(const QString &msg,
int *gdbVersion, int *gdbBuildVersion, bool *isMacGdb)
int *gdbVersion, int *gdbBuildVersion, bool *isMacGdb, bool *isQnxGdb)
{
const QChar dot(QLatin1Char('.'));
@@ -433,6 +433,7 @@ void extractGdbVersion(const QString &msg,
}
*isMacGdb = msg.contains(QLatin1String("Apple version"));
*isQnxGdb = msg.contains(QLatin1String("qnx-nto"));
*gdbVersion = 10000 * cleaned.section(dot, 0, 0).toInt()
+ 100 * cleaned.section(dot, 1, 1).toInt()