Revert "[LLDB] Do not dereference promise pointer in `coroutine_handle` pretty printer"
authorJason Molenda <jason@molenda.com>
Fri, 25 Nov 2022 20:15:47 +0000 (12:15 -0800)
committerJason Molenda <jason@molenda.com>
Fri, 25 Nov 2022 20:22:58 +0000 (12:22 -0800)
commitf6d4e687172ab14728c569a0c1d3eb1c76021250
tree055aaf6d603a6e0bbf1a6bc0d382b9bcf28d1d66
parent2887f924aff04120167c71c0bf185bfa8db0cb35
Revert "[LLDB] Do not dereference promise pointer in `coroutine_handle` pretty printer"

This reverts commit cd3091a88f7c55c90d9b5fff372ce1cdfc71948d.

This change crashes on macOS systems in
formatters::StdlibCoroutineHandleSyntheticFrontEnd when
it fails to create the `ValueObjectSP promise` and calls
a method on it.  The failure causes a segfault while running
TestCoroutineHandle.py on the "LLDB Incremental" CI bot,
https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/

This change originally landed via https://reviews.llvm.org/D132815
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/source/Plugins/Language/CPlusPlus/Coroutines.cpp
lldb/source/Plugins/Language/CPlusPlus/Coroutines.h
lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/coroutine_handle/TestCoroutineHandle.py