GDB: Cleanup file name on stop

Task-number: QTCREATORBUG-7241

Change-Id: I88a764765e7b0360a3b9b4115c5bdd480a243270
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Orgad Shaneh
2012-04-05 11:19:52 +03:00
committed by hjk
parent c4e5dcb770
commit f220a55991

View File

@@ -1307,10 +1307,10 @@ void GdbEngine::handleStopResponse(const GdbMi &data)
const GdbMi frame = data.findChild("frame");
const int lineNumber = frame.findChild("line").data().toInt();
QString fullName = QString::fromUtf8(frame.findChild("fullname").data());
QString fullName = cleanupFullName(QString::fromLocal8Bit(frame.findChild("fullname").data()));
if (fullName.isEmpty())
fullName = QString::fromUtf8(frame.findChild("file").data());
fullName = QString::fromLocal8Bit(frame.findChild("file").data());
if (rid.isValid() && frame.isValid()
&& !isQmlStepBreakpoint(rid)