[lldb] Deprecate SBHostOS threading functionality
authorAlex Langford <alangford@apple.com>
Tue, 27 Jun 2023 17:57:27 +0000 (10:57 -0700)
committerAlex Langford <alangford@apple.com>
Wed, 5 Jul 2023 15:46:48 +0000 (08:46 -0700)
commit1c7c9970379e1949a0b338eba2746dbf84b0bda4
treeed6fa81fd3e1ab58e4588b5ceb976476680099ce
parent38721f29f8b33feefb13121e6d24dc54f345ae73
[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
lldb/include/lldb/API/SBHostOS.h
lldb/tools/driver/Driver.cpp