diff options
author | Nico Weber <thakis@chromium.org> | 2024-06-28 13:25:11 +0200 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2024-06-28 13:25:11 +0200 |
commit | a2e3af5d581547d3ea53e5383d6f7f1cab45120a (patch) | |
tree | 07eab99e313a85dcbecc75c3c5c737e2b596b165 /lldb/source/Interpreter/ScriptInterpreter.cpp | |
parent | d893ed78718e25a982dcba9cdba2d78212b79353 (diff) | |
download | llvm-a2e3af5d581547d3ea53e5383d6f7f1cab45120a.zip llvm-a2e3af5d581547d3ea53e5383d6f7f1cab45120a.tar.gz llvm-a2e3af5d581547d3ea53e5383d6f7f1cab45120a.tar.bz2 |
Revert "[lldb/Interpreter] Discard ScriptedThreadPlan::GetStopDescription return value (#96985)"
This reverts commit 1130e923e2d7fe046101bf639bc5ebcde194c005.
Very likely causes build problems on Windows and with LLVM_NO_DEAD_STRIP=ON,
see https://github.com/llvm/llvm-project/pull/96985#pullrequestreview-2147599208
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreter.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index 65e4cbd..75b2a39 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -106,13 +106,10 @@ ScriptInterpreter::GetOpaqueTypeFromSBEvent(const lldb::SBEvent &event) const { return event.m_opaque_ptr; } -lldb::StreamSP ScriptInterpreter::GetOpaqueTypeFromSBStream( +Stream *ScriptInterpreter::GetOpaqueTypeFromSBStream( const lldb::SBStream &stream) const { - if (stream.m_opaque_up) { - lldb::StreamSP s = std::make_shared<lldb_private::StreamString>(); - *s << const_cast<lldb::SBStream &>(stream).GetData(); - return s; - } + if (stream.m_opaque_up) + return const_cast<lldb::SBStream &>(stream).m_opaque_up.get(); return nullptr; } |