forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/11.0'
Change-Id: I1f8d8b2b399590afb1cbbd575a31701a0d2abbc7
This commit is contained in:
@@ -111,8 +111,6 @@ expected_str<qint64> ProcessStubCreator::startStubProcess(const ProcessSetupData
|
|||||||
if (detached)
|
if (detached)
|
||||||
QObject::connect(process, &Process::done, process, &Process::deleteLater);
|
QObject::connect(process, &Process::done, process, &Process::deleteLater);
|
||||||
|
|
||||||
QObject::connect(process, &Process::done, m_interface, &TerminalInterface::onStubExited);
|
|
||||||
|
|
||||||
process->setWorkingDirectory(setupData.m_workingDirectory);
|
process->setWorkingDirectory(setupData.m_workingDirectory);
|
||||||
|
|
||||||
if constexpr (HostOsInfo::isWindowsHost()) {
|
if constexpr (HostOsInfo::isWindowsHost()) {
|
||||||
|
@@ -281,6 +281,8 @@ void CompilerOptionsBuilderTest::testClangHeadersAndCppIncludePathsOrderLinux()
|
|||||||
t.builtIn("/usr/local/include"),
|
t.builtIn("/usr/local/include"),
|
||||||
t.builtIn("/usr/lib/gcc/x86_64-linux-gnu/4.8/include"),
|
t.builtIn("/usr/lib/gcc/x86_64-linux-gnu/4.8/include"),
|
||||||
t.builtIn("/usr/include/x86_64-linux-gnu"),
|
t.builtIn("/usr/include/x86_64-linux-gnu"),
|
||||||
|
t.builtIn("/usr/lib64/clang/16/include"),
|
||||||
|
t.builtIn("/usr/lib/clang/15.0.7/include"),
|
||||||
t.builtIn("/usr/include")};
|
t.builtIn("/usr/include")};
|
||||||
CompilerOptionsBuilder compilerOptionsBuilder(t.finalize(), UseSystemHeader::No,
|
CompilerOptionsBuilder compilerOptionsBuilder(t.finalize(), UseSystemHeader::No,
|
||||||
UseTweakedHeaderPaths::Yes, UseLanguageDefines::No, UseBuildSystemWarnings::No,
|
UseTweakedHeaderPaths::Yes, UseLanguageDefines::No, UseBuildSystemWarnings::No,
|
||||||
|
@@ -104,7 +104,7 @@ bool isClangSystemHeaderPath(const HeaderPath &headerPath)
|
|||||||
// For example GCC on macOS uses system clang include path which makes clang code model
|
// For example GCC on macOS uses system clang include path which makes clang code model
|
||||||
// include incorrect system headers.
|
// include incorrect system headers.
|
||||||
static const QRegularExpression clangIncludeDir(
|
static const QRegularExpression clangIncludeDir(
|
||||||
R"(\A.*/lib\d*/clang/\d+\.\d+(\.\d+)?/include\z)");
|
R"(\A.*/lib\d*/clang/\d+(\.\d+){0,2}/include\z)");
|
||||||
return clangIncludeDir.match(headerPath.path).hasMatch();
|
return clangIncludeDir.match(headerPath.path).hasMatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -161,8 +161,11 @@ void CtfVisualizerTool::loadJson()
|
|||||||
auto *task = new QFuture<void>(futureInterface);
|
auto *task = new QFuture<void>(futureInterface);
|
||||||
|
|
||||||
QThread *thread = QThread::create([this, filename, futureInterface]() {
|
QThread *thread = QThread::create([this, filename, futureInterface]() {
|
||||||
|
try {
|
||||||
m_traceManager->load(filename);
|
m_traceManager->load(filename);
|
||||||
|
} catch (...) {
|
||||||
|
// nlohmann::json can throw exceptions when requesting type that is wrong
|
||||||
|
}
|
||||||
m_modelAggregator->moveToThread(QApplication::instance()->thread());
|
m_modelAggregator->moveToThread(QApplication::instance()->thread());
|
||||||
m_modelAggregator->setParent(this);
|
m_modelAggregator->setParent(this);
|
||||||
futureInterface->reportFinished();
|
futureInterface->reportFinished();
|
||||||
|
@@ -1450,7 +1450,7 @@ void GdbEngine::handleStop2(const GdbMi &data)
|
|||||||
|
|
||||||
void GdbEngine::handleStop3()
|
void GdbEngine::handleStop3()
|
||||||
{
|
{
|
||||||
if (terminal() && state() != InferiorRunOk) {
|
if (!terminal() || state() != InferiorRunOk) {
|
||||||
DebuggerCommand cmd("-thread-info", Discardable);
|
DebuggerCommand cmd("-thread-info", Discardable);
|
||||||
cmd.callback = CB(handleThreadInfo);
|
cmd.callback = CB(handleThreadInfo);
|
||||||
runCommand(cmd);
|
runCommand(cmd);
|
||||||
|
Submodule src/shared/qbs updated: b607fac54e...40d3048084
Reference in New Issue
Block a user