Revert "[lldb] Make use of Scripted{Python,}Interface for ScriptedThreadPlan (Reland #70392)" (#93153)
Reverts llvm/llvm-project#93149 since it breaks https://lab.llvm.org/buildbot/#/builders/68/builds/74799
This commit is contained in:
1 parent
8f50bcaadc
commit
ae3f68066c
25 files changed
+431
-468
No files matched your search
+9
-19
@@ -7,7 +7,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "lldb/Host/Config.h"
|
||||
#include "lldb/Target/ExecutionContext.h"
|
||||
#include "lldb/Utility/Log.h"
|
||||
#include "lldb/lldb-enumerations.h"
|
||||
|
||||
@@ -45,8 +44,7 @@ lldb::tid_t ScriptedThreadPythonInterface::GetThreadID() {
|
||||
Status error;
|
||||
StructuredData::ObjectSP obj = Dispatch("get_thread_id", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error))
|
||||
return LLDB_INVALID_THREAD_ID;
|
||||
|
||||
return obj->GetUnsignedIntegerValue(LLDB_INVALID_THREAD_ID);
|
||||
@@ -56,8 +54,7 @@ std::optional<std::string> ScriptedThreadPythonInterface::GetName() {
|
||||
Status error;
|
||||
StructuredData::ObjectSP obj = Dispatch("get_name", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error))
|
||||
return {};
|
||||
|
||||
return obj->GetStringValue().str();
|
||||
@@ -67,8 +64,7 @@ lldb::StateType ScriptedThreadPythonInterface::GetState() {
|
||||
Status error;
|
||||
StructuredData::ObjectSP obj = Dispatch("get_state", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error))
|
||||
return eStateInvalid;
|
||||
|
||||
return static_cast<StateType>(obj->GetUnsignedIntegerValue(eStateInvalid));
|
||||
@@ -78,8 +74,7 @@ std::optional<std::string> ScriptedThreadPythonInterface::GetQueue() {
|
||||
Status error;
|
||||
StructuredData::ObjectSP obj = Dispatch("get_queue", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error))
|
||||
return {};
|
||||
|
||||
return obj->GetStringValue().str();
|
||||
@@ -90,8 +85,7 @@ StructuredData::DictionarySP ScriptedThreadPythonInterface::GetStopReason() {
|
||||
StructuredData::DictionarySP dict =
|
||||
Dispatch<StructuredData::DictionarySP>("get_stop_reason", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, dict,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, dict, error))
|
||||
return {};
|
||||
|
||||
return dict;
|
||||
@@ -102,8 +96,7 @@ StructuredData::ArraySP ScriptedThreadPythonInterface::GetStackFrames() {
|
||||
StructuredData::ArraySP arr =
|
||||
Dispatch<StructuredData::ArraySP>("get_stackframes", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr, error))
|
||||
return {};
|
||||
|
||||
return arr;
|
||||
@@ -114,8 +107,7 @@ StructuredData::DictionarySP ScriptedThreadPythonInterface::GetRegisterInfo() {
|
||||
StructuredData::DictionarySP dict =
|
||||
Dispatch<StructuredData::DictionarySP>("get_register_info", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, dict,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, dict, error))
|
||||
return {};
|
||||
|
||||
return dict;
|
||||
@@ -125,8 +117,7 @@ std::optional<std::string> ScriptedThreadPythonInterface::GetRegisterContext() {
|
||||
Status error;
|
||||
StructuredData::ObjectSP obj = Dispatch("get_register_context", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, obj, error))
|
||||
return {};
|
||||
|
||||
return obj->GetAsString()->GetValue().str();
|
||||
@@ -137,8 +128,7 @@ StructuredData::ArraySP ScriptedThreadPythonInterface::GetExtendedInfo() {
|
||||
StructuredData::ArraySP arr =
|
||||
Dispatch<StructuredData::ArraySP>("get_extended_info", error);
|
||||
|
||||
if (!ScriptedInterface::CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr,
|
||||
error))
|
||||
if (!CheckStructuredDataObject(LLVM_PRETTY_FUNCTION, arr, error))
|
||||
return {};
|
||||
|
||||
return arr;
|
||||
|
||||
Reference in new issue
Block a user