[Lldb-commits] [PATCH] D67589: Fix crash on SBCommandReturnObject & assignment

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 18 15:07:10 PDT 2019


jankratochvil added a comment.

In D67589#1674269 <https://reviews.llvm.org/D67589#1674269>, @clayborg wrote:

> We are making all efforts to vend a stable C++ API.


IIUC you mean "stable C++ **ABI**" here. Thanks for the clarification. Maybe http://lldb.llvm.org/resources/sbapi.html could say that and it would be much more clear.

>   lldb_private::CommandReturnObjectImpl {
>     bool owned;
>     std::unique_ptr<lldb_private::CommandReturnObject> m_opaque_up;
>   };

Is this a request to rework this patch this way? If so isn't it safer / more clear to do it rather this way?

  lldb_private::CommandReturnObjectImpl {
    bool owned;
    lldb_private::CommandReturnObject *m_opaque_ptr;
    ~CommandReturnObjectImpl() { if (owned) delete m_opaque_ptr; }
  };


Repository:
  rLLDB LLDB

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

https://reviews.llvm.org/D67589





More information about the lldb-commits mailing list