forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.13' into master
Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs qtcreator_ide_branding.pri src/plugins/clangtools/virtualfilesystemoverlay.h src/plugins/mesonprojectmanager/project/buildoptions/mesonbuildstepconfigwidget.ui src/plugins/qmldesigner/designercore/model/abstractview.cpp Change-Id: I5013bd8fdd28d79cdea74380bec01d4c106adfaf
This commit is contained in:
@@ -3801,10 +3801,12 @@ void GdbEngine::setEnvironmentVariables()
|
||||
// imitate the weird windows gdb behavior of setting the case of the path environment
|
||||
// variable name to an all uppercase PATH
|
||||
const QString name = isWindowsPath(item.name) ? "PATH" : item.name;
|
||||
if (item.operation == EnvironmentItem::Unset)
|
||||
if (item.operation == EnvironmentItem::Unset
|
||||
|| item.operation == EnvironmentItem::SetDisabled) {
|
||||
runCommand({"unset environment " + name});
|
||||
else
|
||||
} else {
|
||||
runCommand({"-gdb-set environment " + name + '=' + item.value});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user