[Lldb-commits] [PATCH] D57475: [Reproducers] Add SBReproducer macros

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 6 08:44:15 PST 2019


JDevlieghere marked 4 inline comments as done.
JDevlieghere added a comment.

Thanks Tatyana!



================
Comment at: source/API/SBReproducer.cpp:40
+  // write into the replay buffer.
+  char buffer[arch_name_len];
+  return SBDebugger::GetDefaultArchitecture(buffer, arch_name_len);
----------------
tatyana-krasnukha wrote:
> Array size must be compile-time constant.
Fixed in rL355518


================
Comment at: source/API/SBReproducer.cpp:1120
+    LLDB_REGISTER_STATIC_METHOD(bool, SBHostOS, ThreadCancel,
+                                (lldb::thread_t, lldb::SBError *));
+    LLDB_REGISTER_STATIC_METHOD(bool, SBHostOS, ThreadDetach,
----------------
tatyana-krasnukha wrote:
> `lldb::thread_t` is just a `void*` on Windows, so
> 
> `return new UnderlyingT(Deserialize<UnderlyingT>());`
> 
> tries to allocate `void` object.
Fixed in rL355519.


Repository:
  rLLDB LLDB

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57475/new/

https://reviews.llvm.org/D57475





More information about the lldb-commits mailing list