Searched refs:PythonObject (Results 1 – 13 of 13) sorted by relevance
/openbsd-src/gnu/llvm/lldb/source/Plugins/ScriptInterpreter/Python/ |
H A D | SWIGPythonBridge.h | 40 python::PythonObject ToSWIGHelper(void *obj, swig_type_info *info); 44 template <typename T> class ScopedPythonObject : PythonObject { 47 : PythonObject(ToSWIGHelper(sb, info)), m_sb(sb) {} in ScopedPythonObject() 53 : PythonObject(std::move(rhs)), m_sb(std::exchange(rhs.m_sb, nullptr)) {} in ScopedPythonObject() 58 const PythonObject &obj() const { return *this; } in obj() 64 PythonObject ToSWIGWrapper(lldb::ValueObjectSP value_sp); 65 PythonObject ToSWIGWrapper(lldb::TargetSP target_sp); 66 PythonObject ToSWIGWrapper(lldb::ProcessSP process_sp); 67 PythonObject ToSWIGWrapper(lldb::ThreadPlanSP thread_plan_sp); 68 PythonObject ToSWIGWrapper(lldb::BreakpointSP breakpoint_sp); [all …]
|
H A D | PythonDataObjects.h | 66 class PythonObject; variable 219 T, typename std::enable_if<std::is_base_of<PythonObject, T>::value>::type> { 224 class PythonObject { 226 PythonObject() = default; 228 PythonObject(PyRefType type, PyObject *py_obj) { 238 PythonObject(const PythonObject &rhs) 239 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {} 241 PythonObject(PythonObject &&rhs) { 246 ~PythonObject() { Reset(); } 267 PythonObject &operator=(PythonObject other) { [all …]
|
H A D | PythonDataObjects.cpp | 37 template <> Expected<bool> python::As<bool>(Expected<PythonObject> &&obj) { in As() 44 Expected<long long> python::As<long long>(Expected<PythonObject> &&obj) { in As() 52 python::As<unsigned long long>(Expected<PythonObject> &&obj) { in As() 59 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) { in As() 80 void PythonObject::Reset() { in Reset() 94 Expected<long long> PythonObject::AsLongLong() const { in AsLongLong() 104 Expected<long long> PythonObject::AsUnsignedLongLong() const { in AsUnsignedLongLong() 115 Expected<unsigned long long> PythonObject::AsModuloUnsignedLongLong() const { in AsModuloUnsignedLongLong() 131 void PythonObject::Dump(Stream &strm) const { in Dump() 151 PyObjectType PythonObject::GetObjectType() const { in GetObjectType() [all …]
|
H A D | ScriptedPythonInterface.h | 37 T ExtractValueFromPythonObject(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 57 PythonObject implementor(PyRefType::Borrowed, in Dispatch() 67 llvm::Expected<PythonObject> expected_return_object = in Dispatch() 84 PythonObject py_return = std::move(expected_return_object.get()); in Dispatch() 116 python::PythonObject Transform(Status arg) { in Transform() 127 void ReverseTransform(T &original_arg, python::PythonObject transformed_arg, in ReverseTransform() 190 python::PythonObject &p, Status &error); 195 StructuredData::DictionarySP>(python::PythonObject &p, Status &error); 199 python::PythonObject &p, Status &error); 204 python::PythonObject &p, Status &error); [all …]
|
H A D | ScriptedPythonInterface.cpp | 33 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 41 StructuredData::DictionarySP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 48 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 61 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject() 77 std::optional<MemoryRegionInfo>>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
|
H A D | ScriptInterpreterPython.cpp | 612 PythonObject &save_file, in SetStdHandle() 730 PythonObject &main_module = GetMainModule(); in GetSessionDictionary() 765 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( in GetMaxPositionalArgumentsForCallable() 798 PythonObject module(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects() 869 PythonObject pargs( in ExecuteOneLine() 873 PythonObject return_value( in ExecuteOneLine() 1001 Expected<PythonObject> maybe_py_return = in ExecuteOneLineWithReturn() 1020 PythonObject py_return = std::move(maybe_py_return.get()); in ExecuteOneLineWithReturn() 1125 Expected<PythonObject> return_value = in ExecuteMultipleLines() 1437 PythonObject ret_val = LLDBSWIGPython_CreateFrameRecognizer( in CreateFrameRecognizer() [all …]
|
H A D | ScriptInterpreterPythonImpl.h | 398 python::PythonObject &save_file, const char *mode); 400 python::PythonObject m_saved_stdin; 401 python::PythonObject m_saved_stdout; 402 python::PythonObject m_saved_stderr; 406 python::PythonObject m_run_one_line_function; 407 python::PythonObject m_run_one_line_str_global;
|
H A D | ScriptedThreadPythonInterface.cpp | 44 PythonObject ret_val; in CreatePluginObject() 53 ret_val = PythonObject(PyRefType::Borrowed, in CreatePluginObject()
|
H A D | ScriptedPlatformPythonInterface.cpp | 47 PythonObject ret_val = LLDBSwigPythonCreateScriptedObject( in CreatePluginObject()
|
H A D | ScriptedProcessPythonInterface.cpp | 49 PythonObject ret_val = LLDBSwigPythonCreateScriptedObject( in CreatePluginObject()
|
/openbsd-src/gnu/llvm/lldb/bindings/python/ |
H A D | python-swigsafecast.swig | 4 PythonObject ToSWIGHelper(void *obj, swig_type_info *info) { 8 PythonObject ToSWIGWrapper(std::unique_ptr<lldb::SBValue> value_sb) { 12 PythonObject ToSWIGWrapper(lldb::ValueObjectSP value_sp) { 16 PythonObject ToSWIGWrapper(lldb::TargetSP target_sp) { 21 PythonObject ToSWIGWrapper(lldb::ProcessSP process_sp) { 26 PythonObject ToSWIGWrapper(lldb::ThreadPlanSP thread_plan_sp) { 31 PythonObject ToSWIGWrapper(lldb::BreakpointSP breakpoint_sp) { 36 PythonObject ToSWIGWrapper(const Status& status) { 40 PythonObject ToSWIGWrapper(std::unique_ptr<lldb::SBStream> stream_sb) { 44 PythonObject ToSWIGWrapper(std::unique_ptr<lldb::SBStructuredData> data_sb) { [all …]
|
H A D | python-wrapper.swig | 31 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( 40 PythonObject frame_arg = ToSWIGWrapper(frame_sp); 41 PythonObject bp_loc_arg = 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 = ToSWIGWrapper(valobj_sp); [all …]
|
H A D | python-typemaps.swig | 70 PythonObject obj = Retain<PythonObject>($input); 78 PythonObject obj = Retain<PythonObject>($input);
|