Searched refs:PythonObject (Results 1 – 15 of 15) sorted by relevance
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | SWIGPythonBridge.h | 43 python::PythonObject ToSWIGHelper(void *obj, swig_type_info *info); 47 template <typename T> class ScopedPythonObject : PythonObject { 50 : PythonObject(ToSWIGHelper(sb, info)), m_sb(sb) {} in ScopedPythonObject() 56 : PythonObject(std::move(rhs)), m_sb(std::exchange(rhs.m_sb, nullptr)) {} in ScopedPythonObject() 61 const PythonObject &obj() const { return *this; } in obj() 83 static PythonObject ToSWIGWrapper(std::unique_ptr<lldb::SBValue> value_sb); 84 static PythonObject 86 static PythonObject ToSWIGWrapper(lldb::ValueObjectSP value_sp); 87 static PythonObject ToSWIGWrapper(lldb::TargetSP target_sp); 88 static PythonObject ToSWIGWrapper(lldb::ProcessSP process_sp); [all …]
|
| H A D | PythonDataObjects.h | 66 class PythonObject; variable 222 T, typename std::enable_if<std::is_base_of<PythonObject, T>::value>::type> { 227 class PythonObject { 229 PythonObject() = default; 231 PythonObject(PyRefType type, PyObject *py_obj) { 241 PythonObject(const PythonObject &rhs) 242 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {} 244 PythonObject(PythonObject &&rhs) { 249 ~PythonObject() { Reset(); } 270 PythonObject &operator=(PythonObject other) { [all …]
|
| H A D | PythonDataObjects.cpp | 38 template <> Expected<bool> python::As<bool>(Expected<PythonObject> &&obj) { in As() 45 Expected<long long> python::As<long long>(Expected<PythonObject> &&obj) { in As() 53 python::As<unsigned long long>(Expected<PythonObject> &&obj) { in As() 60 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) { in As() 81 void PythonObject::Reset() { in Reset() 95 Expected<long long> PythonObject::AsLongLong() const { in AsLongLong() 105 Expected<unsigned long long> PythonObject::AsUnsignedLongLong() const { in AsUnsignedLongLong() 116 Expected<unsigned long long> PythonObject::AsModuloUnsignedLongLong() const { in AsModuloUnsignedLongLong() 133 void PythonObject::Dump(Stream &strm) const { in Dump() 153 PyObjectType PythonObject::GetObjectType() const { in GetObjectType() [all …]
|
| H A D | ScriptedPythonInterface.h | |
| H A D | ScriptedPythonInterface.cpp | |
| H A D | ScriptInterpreterPython.cpp | 606 PythonObject &save_file, in SetStdHandle() 726 PythonObject &main_module = GetMainModule(); in GetSessionDictionary() 759 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( in GetMaxPositionalArgumentsForCallable() 792 PythonObject module(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects() 863 PythonObject pargs( in ExecuteOneLine() 867 PythonObject return_value( in ExecuteOneLine() 995 Expected<PythonObject> maybe_py_return = in ExecuteOneLineWithReturn() 1014 PythonObject py_return = std::move(maybe_py_return.get()); in ExecuteOneLineWithReturn() 1119 Expected<PythonObject> return_value = in ExecuteMultipleLines() 1463 PythonObject ret_val = SWIGBridge::LLDBSWIGPython_CreateFrameRecognizer( in CreateFrameRecognizer() [all …]
|
| H A D | ScriptInterpreterPythonImpl.h | 413 python::PythonObject &save_file, const char *mode); 415 python::PythonObject m_saved_stdin; 416 python::PythonObject m_saved_stdout; 417 python::PythonObject m_saved_stderr; 421 python::PythonObject m_run_one_line_function; 422 python::PythonObject m_run_one_line_str_global;
|
| H A D | ScriptedThreadPythonInterface.cpp | |
| H A D | ScriptedPlatformPythonInterface.cpp | |
| H A D | ScriptedProcessPythonInterface.cpp | |
| /freebsd/contrib/llvm-project/lldb/bindings/python/ |
| H A D | python-swigsafecast.swig | 4 PythonObject ToSWIGHelper(void *obj, swig_type_info *info) { 8 PythonObject SWIGBridge::ToSWIGWrapper(std::unique_ptr<lldb::SBValue> value_sb) { 12 PythonObject SWIGBridge::ToSWIGWrapper(std::unique_ptr<lldb::SBCommandReturnObject> result_up) { 16 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ValueObjectSP value_sp) { 20 PythonObject SWIGBridge::ToSWIGWrapper(lldb::TargetSP target_sp) { 25 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ProcessSP process_sp) { 30 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ModuleSP module_sp) { 35 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ThreadPlanSP thread_plan_sp) { 40 PythonObject SWIGBridge::ToSWIGWrapper(lldb::BreakpointSP breakpoint_sp) { 45 PythonObject SWIGBridge::ToSWIGWrapper(Status&& status) { [all …]
|
| H A D | python-wrapper.swig | 31 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( 40 PythonObject frame_arg = SWIGBridge::ToSWIGWrapper(frame_sp); 41 PythonObject bp_loc_arg = SWIGBridge::ToSWIGWrapper(bp_loc_sp); 78 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( 84 PythonObject result = 105 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( 111 PythonObject result = 151 pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( 162 PythonObject result; 169 PythonObject value_arg = SWIGBridge::ToSWIGWrapper(valobj_sp); [all …]
|
| H A D | python-typemaps.swig | 63 PythonObject obj(PyRefType::Borrowed, $input); 76 PythonObject obj(PyRefType::Borrowed, $input); 156 PythonObject obj = Retain<PythonObject>($input); 164 PythonObject obj = Retain<PythonObject>($input);
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ |
| H A D | ScriptedPythonInterface.h | 144 PythonObject result = {}; in CreatePluginObject() 147 result = PythonObject(PyRefType::Borrowed, in CreatePluginObject() 158 PythonObject::ResolveNameWithDictionary<python::PythonCallable>( in CreatePluginObject() 180 llvm::Expected<PythonObject> expected_return_object = in CreatePluginObject() 223 PythonObject obj_class = result.GetAttributeValue("__class__"); in CreatePluginObject() 232 PythonObject object_class_mapping_proxy = in CreatePluginObject() 330 T ExtractValueFromPythonObject(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 350 PythonObject implementor(PyRefType::Borrowed, in Dispatch() 363 llvm::Expected<PythonObject> expected_return_object = in Dispatch() 380 PythonObject py_return = std::move(expected_return_object.get()); in Dispatch() [all …]
|
| H A D | ScriptedPythonInterface.cpp | 32 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 40 StructuredData::DictionarySP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 47 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 59 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 72 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 85 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 101 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 116 lldb::ProcessAttachInfoSP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 131 lldb::ProcessLaunchInfoSP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 147 std::optional<MemoryRegionInfo>>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() [all …]
|