Commit af8abd0a authored by hjk's avatar hjk
Browse files

debugger: .note.gnu.build-id is not a safe marker for debug builds



Change-Id: I4f380aeee9458a114d904ea396310c5a71295036
Reviewed-by: default avatarRobert Löhning <robert.loehning@nokia.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 93894ab1
......@@ -5310,10 +5310,11 @@ void GdbEngine::checkForReleaseBuild()
return;
}
// Note: .note.gnu.build-id also appears in regular release builds.
// bool hasBuildId = elfData.indexOf(".note.gnu.build-id") >= 0;
bool hasEmbeddedInfo = elfData.indexOf(".debug_info") >= 0;
bool hasBuildId = elfData.indexOf(".note.gnu.build-id") >= 0;
bool hasLink = elfData.indexOf(".gnu_debuglink") >= 0;
if (hasEmbeddedInfo || hasBuildId || hasLink)
if (hasEmbeddedInfo || hasLink)
return;
QString warning;
......
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