forked from qt-creator/qt-creator
GDB: Cleanup file name on stop
Task-number: QTCREATORBUG-7241 Change-Id: I88a764765e7b0360a3b9b4115c5bdd480a243270 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user