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

Change-Id: I4f380aeee9458a114d904ea396310c5a71295036
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-06-20 14:21:57 +02:00
parent 93894ab160
commit af8abd0a9d

View File

@@ -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;