[Reproducers] Disable registering lldb::thread_t everywhere

As discussed on the mailing list, default serialization for thread ids
is not correct, even if they're represented as basic types. I'm
purposely leaving the corresponding record macros in place so that we
don't break the API boundary detection.

llvm-svn: 355610
This commit is contained in:
Jonas Devlieghere 2019-03-07 17:27:33 +00:00
parent 6f7c536e08
commit 0ccc0b1a5f
1 changed files with 0 additions and 11 deletions

View File

@ -1116,17 +1116,6 @@ SBRegistry::SBRegistry() {
LLDB_REGISTER_STATIC_METHOD(lldb::SBFileSpec, SBHostOS,
GetUserHomeDirectory, ());
LLDB_REGISTER_STATIC_METHOD(void, SBHostOS, ThreadCreated, (const char *));
#ifndef _WIN32
// FIXME: On Windows, lldb::thread_t is just a void*, so the we will try to
// allocate an object of type void when deserializing.
LLDB_REGISTER_STATIC_METHOD(bool, SBHostOS, ThreadCancel,
(lldb::thread_t, lldb::SBError *));
LLDB_REGISTER_STATIC_METHOD(bool, SBHostOS, ThreadDetach,
(lldb::thread_t, lldb::SBError *));
LLDB_REGISTER_STATIC_METHOD(
bool, SBHostOS, ThreadJoin,
(lldb::thread_t, lldb::thread_result_t *, lldb::SBError *));
#endif
}
{
LLDB_REGISTER_CONSTRUCTOR(SBInstruction, ());