Dimitry Andric 390ceeb437 Pull in r374444 from upstream lldb trunk (by me):
Fix process launch failure on FreeBSD after r365761

  Summary:
  After rLLDB365761, and with `LLVM_ENABLE_ABI_BREAKING_CHECKS`
  enabled, launching any process on FreeBSD crashes lldb with:

  ```
  Expected<T> must be checked before access or destruction.
  Expected<T> value was in success state. (Note: Expected<T> values in
  success mode must still be checked prior to being destroyed).
  ```

  This is because `m_operation_thread` and `m_monitor_thread` were
  wrapped in `llvm::Expected<>`, but this requires the objects to be
  correctly initialized before accessing them.

  To fix the crashes, use `llvm::Optional<>` for the members (as
  indicated by labath), and use local variables to store the return
  values of `LaunchThread` and `StartMonitoringChildProcess`.  Then,
  only assign to the member variables after checking if the return
  values indicated success.

  Reviewers: devnexen, emaste, MaskRay, mgorny

  Reviewed By: devnexen

  Subscribers: jfb, labath, krytarowski, lldb-commits

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

PR:		241137
MFC after:	1 month
X-MFC-With:	r353358
2019-10-10 20:33:55 +00:00
..
2019-02-26 05:59:22 +00:00
2018-12-23 01:05:52 +00:00
2019-08-11 06:26:03 +00:00
2018-10-20 20:49:46 +00:00
2018-09-19 06:42:05 +00:00
2019-09-30 17:27:59 +00:00
2018-11-04 18:24:11 +00:00
2019-06-29 18:41:40 +00:00
2019-09-26 01:50:20 +00:00
2019-09-01 16:41:24 +00:00
2019-05-08 18:46:12 +00:00
2018-08-14 18:58:01 +00:00
2018-11-26 15:33:55 +00:00
2019-05-08 11:04:09 +00:00
2019-09-26 18:24:04 +00:00
2019-02-25 18:41:16 +00:00
2019-07-18 00:27:28 +00:00
2019-10-08 20:59:31 +00:00
2019-09-12 00:19:16 +00:00
2019-07-04 08:40:10 +00:00
2019-08-22 18:52:30 +00:00