[all-commits] [llvm/llvm-project] 1e5d52: [lldb] Add SystemLogHandler for emitting log messa...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Jun 24 10:53:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e5d5261e2b6637011a65c929828ca8cb0ab8e2e
      https://github.com/llvm/llvm-project/commit/1e5d5261e2b6637011a65c929828ca8cb0ab8e2e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-06-24 (Fri, 24 Jun 2022)

  Changed paths:
    M lldb/include/lldb/Host/Host.h
    M lldb/source/Host/common/Host.cpp
    M lldb/source/Host/macosx/objcxx/Host.mm

  Log Message:
  -----------
  [lldb] Add SystemLogHandler for emitting log messages to the system log

Add a system log handler that emits log messages to the operating system
log. In addition to the log handler itself, this patch also introduces a
new Host::SystemLog helper function to abstract over writing to the
system log.

Differential revision: https://reviews.llvm.org/D128321


  Commit: 5a08280659125b6196e1ca83d5d9d6ba412674fe
      https://github.com/llvm/llvm-project/commit/5a08280659125b6196e1ca83d5d9d6ba412674fe
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-06-24 (Fri, 24 Jun 2022)

  Changed paths:
    M lldb/test/Shell/SymbolFile/DWARF/DW_AT_range-DW_FORM_sec_offset.s
    M lldb/test/Shell/SymbolFile/DWARF/x86/debug_ranges-missing-section.s

  Log Message:
  -----------
  [lldb] Fix flakiness in shell tests that mixed stderr and stdout

Because the diagnostic events are processed by the default event handler
in its own thread, tests cannot rely on output ordering. Split stdout
and stderr to make the test reliable again.


Compare: https://github.com/llvm/llvm-project/compare/4821508d4db7...5a0828065912


More information about the All-commits mailing list