Revert "[lldb/Interpreter] Discard ScriptedThreadPlan::GetStopDescription return value (#96985)"
This reverts commit 1130e923e2.
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
This commit is contained in:
1 parent
d893ed7871
commit
a2e3af5d58
9 files changed
+32
-28
No files matched your search
+10
-2
@@ -26,6 +26,15 @@ ScriptedPythonInterface::ScriptedPythonInterface(
|
||||
ScriptInterpreterPythonImpl &interpreter)
|
||||
: ScriptedInterface(), m_interpreter(interpreter) {}
|
||||
|
||||
template <>
|
||||
void ScriptedPythonInterface::ReverseTransform(
|
||||
lldb_private::Stream *&original_arg, python::PythonObject transformed_arg,
|
||||
Status &error) {
|
||||
Stream *s = ExtractValueFromPythonObject<Stream *>(transformed_arg, error);
|
||||
*original_arg = *s;
|
||||
original_arg->PutCString(static_cast<StreamString *>(s)->GetData());
|
||||
}
|
||||
|
||||
template <>
|
||||
StructuredData::ArraySP
|
||||
ScriptedPythonInterface::ExtractValueFromPythonObject<StructuredData::ArraySP>(
|
||||
@@ -65,8 +74,7 @@ Event *ScriptedPythonInterface::ExtractValueFromPythonObject<Event *>(
|
||||
}
|
||||
|
||||
template <>
|
||||
lldb::StreamSP
|
||||
ScriptedPythonInterface::ExtractValueFromPythonObject<lldb::StreamSP>(
|
||||
Stream *ScriptedPythonInterface::ExtractValueFromPythonObject<Stream *>(
|
||||
python::PythonObject &p, Status &error) {
|
||||
if (lldb::SBStream *sb_stream = reinterpret_cast<lldb::SBStream *>(
|
||||
python::LLDBSWIGPython_CastPyObjectToSBStream(p.get())))
|
||||
|
||||
Reference in new issue
Block a user