[all-commits] [llvm/llvm-project] f2991b: [lldb][test] Disable procfile by thread ID test wh...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Aug 12 05:42:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2991bd93146162bcc30bc5e8da8707074f3fdef
      https://github.com/llvm/llvm-project/commit/f2991bd93146162bcc30bc5e8da8707074f3fdef
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2024-08-12 (Mon, 12 Aug 2024)

  Changed paths:
    M lldb/unittests/Host/linux/SupportTest.cpp

  Log Message:
  -----------
  [lldb][test] Disable procfile by thread ID test when LLVM_ENABLE_THREADS is not defined

When LLVM_ENABLE_THREADS is not defined, llvm::get_threadid returns 0 which
makes this test case fail.

This is a pretty niche setting, Linaro uses it to stop lld crashing our 32 bit
containers. So the test will get plenty of runs elsewhere.

In lldb's code it's not getting the current thread ID anyway, it's using
a value it got from ptrace. So even if that copy of lldb was built with
LLVM_ENABLE_THREADS off, it should still be able to debug threads.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list