Home
last modified time | relevance | path

Searched refs:PythonObject (Results 1 – 12 of 12) sorted by relevance

/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DSWIGPythonBridge.h43 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()
76 // class SWIGPythonBridge : public SWIGBridge<PythonObject> {
77 // template<> static PythonObject ToSWIGWrapper(...);
83 static PythonObject ToSWIGWrapper(std::unique_ptr<lldb::SBValue> value_sb);
84 static PythonObject ToSWIGWrapper(lldb::ValueObjectSP value_sp);
85 static PythonObject ToSWIGWrappe
[all...]
H A DPythonDataObjects.h66 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 DPythonDataObjects.cpp38 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 python_is_finalizing()
95 Expected<long long> PythonObject::AsLongLong() const { in Reset()
105 Expected<unsigned long long> PythonObject::AsUnsignedLongLong() const { in AsLongLong()
116 Expected<unsigned long long> PythonObject::AsModuloUnsignedLongLong() const {
131 // PythonObject in Serialize()
133 void PythonObject
[all...]
H A DScriptInterpreterPython.cpp606 PythonObject &save_file, in LeaveSession()
724 PythonObject &main_module = GetMainModule(); in EnterSession()
757 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>(
790 PythonObject module(PyRefType::Borrowed, in GetMaxPositionalArgumentsForCallable()
861 PythonObject pargs( in ExecuteOneLine()
865 PythonObject return_value( in ExecuteOneLine()
993 Expected<PythonObject> maybe_py_return = in ExecuteOneLineWithReturn()
1012 PythonObject py_return = std::move(maybe_py_return.get()); in ExecuteOneLineWithReturn()
1117 Expected<PythonObject> return_value = in ExecuteMultipleLines()
1457 PythonObject ret_va in GenerateTypeSynthClass()
[all...]
H A DScriptInterpreterPythonImpl.h411 python::PythonObject &save_file, const char *mode);
413 python::PythonObject m_saved_stdin;
414 python::PythonObject m_saved_stdout;
415 python::PythonObject m_saved_stderr;
419 python::PythonObject m_run_one_line_function;
420 python::PythonObject m_run_one_line_str_global;
/llvm-project/lldb/unittests/ScriptInterpreter/Python/
H A DPythonTestSuite.cpp69 python::PythonObject
73 return python::PythonObject(); in LLDBSwigPythonCreateSyntheticProvider()
76 python::PythonObject
80 return python::PythonObject(); in LLDBSwigPythonCreateCommandObject()
83 python::PythonObject lldb_private::python::SWIGBridge::
87 return python::PythonObject(); in LLDBSwigPythonCreateScriptedBreakpointResolver()
233 python::PythonObject
237 return python::PythonObject(); in LLDBSWIGPythonRunScriptKeywordProcess()
240 python::PythonObject
243 return python::PythonObject(); in LLDBSWIGPythonRunScriptKeywordThread()
[all...]
H A DPythonDataObjectsTests.cpp62 PythonObject owned(PyRefType::Owned, obj); in TEST_F()
67 PythonObject strong_ref(owned); in TEST_F()
103 PythonObject sys_module = m_main_module.ResolveName("sys"); in TEST_F()
110 PythonObject sys_path = m_sys_module.ResolveName("path"); in TEST_F()
111 PythonObject sys_version_info = m_sys_module.ResolveName("version_info"); in TEST_F()
119 PythonObject sys_version_info = m_sys_module.ResolveName("version_info"); in TEST_F()
121 PythonObject version_info_type(PyRefType::Owned, in TEST_F()
124 PythonObject major_version_field = version_info_type.ResolveName("major"); in TEST_F()
129 PythonObject sys_version_info = m_sys_module.ResolveName("version_info"); in TEST_F()
130 PythonObject major_version_fiel in TEST_F()
[all...]
/llvm-project/lldb/bindings/python/
H A Dpython-swigsafecast.swig4 PythonObject ToSWIGHelper(void *obj, swig_type_info *info) {
8 PythonObject SWIGBridge::ToSWIGWrapper(std::unique_ptr<lldb::SBValue> value_sb) {
12 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ValueObjectSP value_sp) {
16 PythonObject SWIGBridge::ToSWIGWrapper(lldb::TargetSP target_sp) {
21 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ProcessSP process_sp) {
26 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ModuleSP module_sp) {
31 PythonObject SWIGBridge::ToSWIGWrapper(lldb::ThreadPlanSP thread_plan_sp) {
36 PythonObject SWIGBridge::ToSWIGWrapper(lldb::BreakpointSP breakpoint_sp) {
41 PythonObject SWIGBridge::ToSWIGWrapper(Status&& status) {
45 PythonObject SWIGBridg
[all...]
H A Dpython-wrapper.swig31 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_ar
[all...]
H A Dpython-typemaps.swig63 PythonObject obj(PyRefType::Borrowed, $input);
76 PythonObject obj(PyRefType::Borrowed, $input);
156 PythonObject obj = Retain<PythonObject>($input);
164 PythonObject obj = Retain<PythonObject>($input);
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/
H A DScriptedPythonInterface.h144 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 Dispatch()
330 T ExtractValueFromPythonObject(python::PythonObject &p, Status &error) { in Transform()
350 PythonObject implementor(PyRefType::Borrowed, in Transform()
363 llvm::Expected<PythonObject> expected_return_object =
380 PythonObject py_retur in TransformTuple()
[all...]
H A DScriptedPythonInterface.cpp32 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 in ExtractValueFromPythonObject()
[all...]