Commit 63751cda authored by hjk's avatar hjk
Browse files

debugger: also show file names in 'sources' view that cannot be resolved

parent 2c59a246
...@@ -1024,11 +1024,14 @@ void GdbEngine::handleQuerySources(const GdbResponse &response) ...@@ -1024,11 +1024,14 @@ void GdbEngine::handleQuerySources(const GdbResponse &response)
GdbMi files = response.data.findChild("files"); GdbMi files = response.data.findChild("files");
foreach (const GdbMi &item, files.children()) { foreach (const GdbMi &item, files.children()) {
GdbMi fullName = item.findChild("fullname"); GdbMi fullName = item.findChild("fullname");
GdbMi fileName = item.findChild("file");
QString file = QString::fromLocal8Bit(fileName.data());
if (fullName.isValid()) { if (fullName.isValid()) {
QString full = cleanupFullName(QString::fromLocal8Bit(fullName.data())); QString full = cleanupFullName(QString::fromLocal8Bit(fullName.data()));
QString fileName = QString::fromLocal8Bit(item.findChild("file").data()); m_shortToFullName[file] = full;
m_shortToFullName[fileName] = full; m_fullToShortName[full] = file;
m_fullToShortName[full] = fileName; } else if (fileName.isValid()) {
m_shortToFullName[file] = tr("<unknown>");
} }
} }
if (m_shortToFullName != oldShortToFull) if (m_shortToFullName != oldShortToFull)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment