forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user