[all-commits] [llvm/llvm-project] 1c7c99: [lldb] Deprecate SBHostOS threading functionality

Alex via All-commits all-commits at lists.llvm.org
Wed Jul 5 08:48:06 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c7c9970379e1949a0b338eba2746dbf84b0bda4
      https://github.com/llvm/llvm-project/commit/1c7c9970379e1949a0b338eba2746dbf84b0bda4
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-07-05 (Wed, 05 Jul 2023)

  Changed paths:
    M lldb/include/lldb/API/SBHostOS.h
    M lldb/tools/driver/Driver.cpp

  Log Message:
  -----------
  [lldb] Deprecate SBHostOS threading functionality

For some context, Raphael tried to this before: https://reviews.llvm.org/D104231

These methods are not tested at all, and in some cases, are not even fully
implemented (e.g. SBHostOS::ThreadCreated). I'm not convinced it's
possible to use these correctly from Python, and I'm not aware of any
users of these methods. It's difficult to remove these methods
wholesale, but we can start with deprecating them.

A possible follow-up to this change (which may require an RFC to get
more buy in from the community) is to gut these functions entirely. That
is, remove the implementations and replace them either with nothing or
have them dump out a message to stderr saying not to use these.

Differential Revision: https://reviews.llvm.org/D153900




More information about the All-commits mailing list