Merge remote-tracking branch 'origin/11.0' into HEAD

Change-Id: I3b6a4bd860c11324d989818d9010f07faaac677a
This commit is contained in:
David Schulz
2023-09-12 09:46:28 +02:00
6 changed files with 10 additions and 7 deletions

View File

@@ -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()) {

View File

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

View File

@@ -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();
} }

View File

@@ -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]() {
m_traceManager->load(filename); try {
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();

View File

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