forked from qt-creator/qt-creator
Debugger: Compile with QT_NO_CAST_FROM_ASCII.
(except gdbmi.cpp, name_demangler.cpp). Remove some unneeded conversions, change some maps to take QByteArray keys. Change-Id: I010f1251998a441fe5c8c87901b1e0c277c0391c Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1049,7 +1049,7 @@ void CdbEngine::handleAddWatch(const CdbExtensionCommandPtr &reply)
|
||||
watchHandler()->insertData(item);
|
||||
showMessage(QString::fromLatin1("Unable to add watch item '%1'/'%2': %3").
|
||||
arg(QString::fromAscii(item.iname), QString::fromAscii(item.exp),
|
||||
reply->errorMessage), LogError);
|
||||
QString::fromLocal8Bit(reply->errorMessage)), LogError);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1263,12 +1263,14 @@ void CdbEngine::handleJumpToLineAddressResolution(const CdbBuiltinCommandPtr &cm
|
||||
return;
|
||||
// Evaluate expression: 5365511549 = 00000001`3fcf357d
|
||||
// Set register 'rip' to hex address and goto lcoation
|
||||
QString answer = QString::fromAscii(cmd->reply.front()).trimmed();
|
||||
QByteArray answer = cmd->reply.front().trimmed();
|
||||
const int equalPos = answer.indexOf(" = ");
|
||||
if (equalPos == -1)
|
||||
return;
|
||||
answer.remove(0, equalPos + 3);
|
||||
answer.remove(QLatin1Char('`'));
|
||||
const int apPos = answer.indexOf('`');
|
||||
if (apPos != -1)
|
||||
answer.remove(apPos, 1);
|
||||
bool ok;
|
||||
const quint64 address = answer.toLongLong(&ok, 16);
|
||||
if (ok && address) {
|
||||
@@ -2844,7 +2846,7 @@ void CdbEngine::handleStackTrace(const CdbExtensionCommandPtr &command)
|
||||
parseStackTrace(data, false);
|
||||
postCommandSequence(command->commandSequence);
|
||||
} else {
|
||||
showMessage(command->errorMessage, LogError);
|
||||
showMessage(QString::fromLocal8Bit(command->errorMessage), LogError);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2854,7 +2856,7 @@ void CdbEngine::handleExpression(const CdbExtensionCommandPtr &command)
|
||||
if (command->success) {
|
||||
value = command->reply.toInt();
|
||||
} else {
|
||||
showMessage(command->errorMessage, LogError);
|
||||
showMessage(QString::fromLocal8Bit(command->errorMessage), LogError);
|
||||
}
|
||||
// Is this a conditional breakpoint?
|
||||
if (command->cookie.isValid() && qVariantCanConvert<ConditionalBreakPointCookie>(command->cookie)) {
|
||||
|
||||
Reference in New Issue
Block a user