[all-commits] [llvm/llvm-project] 2f343f: [lldb] Print a message when background tasks take ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Mar 5 12:04:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f343fc1574f36b3b5ff1acf63407c53dcdac331
      https://github.com/llvm/llvm-project/commit/2f343fc1574f36b3b5ff1acf63407c53dcdac331
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2024-03-05 (Tue, 05 Mar 2024)

  Changed paths:
    M lldb/tools/driver/Driver.cpp

  Log Message:
  -----------
  [lldb] Print a message when background tasks take a while to complete (#82799)

When terminating the debugger, we wait for all background tasks to
complete. Given that there's no way to interrupt those treads, this can
take a while. When that happens, the debugger appears to hang at exit.

The above situation is unfortunately not uncommon when background
downloading of dSYMs is enabled (`symbols.auto-download background`).
Even when calling dsymForUUID with a reasonable timeout, it can take a
while to complete.

This patch improves the user experience by printing a message from the
driver when it takes more than one (1) second to terminate the debugger.



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