|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
gen/tools/lldb/scripts/LLDBWrapPython.cpp 8402 PythonInteger py_int(PyRefType::Borrowed, obj1);
10543 PythonInteger py_int(PyRefType::Borrowed, obj1);
11593 PythonInteger py_int(PyRefType::Borrowed, obj1);
15593 PythonFile py_file(PyRefType::Borrowed, obj1);
15686 PythonFile py_file(PyRefType::Borrowed, obj1);
16302 PythonFile py_file(PyRefType::Borrowed, obj1);
16340 PythonFile py_file(PyRefType::Borrowed, obj1);
16382 PythonFile py_file(PyRefType::Borrowed, obj1);
16509 PythonFile py_file(PyRefType::Borrowed, obj1);
16640 PythonString py_str(PyRefType::Borrowed, obj1);
19366 PythonString str(PyRefType::Borrowed, obj2);
19371 PythonByteArray bytearray(PyRefType::Borrowed, obj2);
19376 PythonBytes bytes(PyRefType::Borrowed, obj2);
21011 PythonFile py_file(PyRefType::Borrowed, obj1);
21104 PythonFile py_file(PyRefType::Borrowed, obj1);
21197 PythonFile py_file(PyRefType::Borrowed, obj1);
21565 PythonFile py_file(PyRefType::Borrowed, obj3);
21576 PythonFile py_file(PyRefType::Borrowed, obj4);
22827 PythonInteger py_int(PyRefType::Borrowed, obj0);
22881 PythonInteger py_int(PyRefType::Borrowed, obj0);
22918 PythonInteger py_int(PyRefType::Borrowed, obj0);
22974 PythonList list(PyRefType::Borrowed, obj2);
23078 PythonString str(PyRefType::Borrowed, obj1);
23083 PythonByteArray bytearray(PyRefType::Borrowed, obj1);
23088 PythonBytes bytes(PyRefType::Borrowed, obj1);
25671 PythonString str(PyRefType::Borrowed, obj1);
25676 PythonByteArray bytearray(PyRefType::Borrowed, obj1);
25681 PythonBytes bytes(PyRefType::Borrowed, obj1);
29194 PythonFile py_file(PyRefType::Borrowed, obj0);
29284 PythonFile py_file(PyRefType::Borrowed, obj0);
29314 PythonFile py_file(PyRefType::Borrowed, obj0);
29344 PythonFile py_file(PyRefType::Borrowed, obj0);
33848 PythonFile py_file(PyRefType::Borrowed, obj1);
34527 PythonFile py_file(PyRefType::Borrowed, obj1);
34822 PythonList list(PyRefType::Borrowed, obj0);
35283 PythonList list(PyRefType::Borrowed, obj1);
35411 PythonList list(PyRefType::Borrowed, obj1);
43717 PythonString str(PyRefType::Borrowed, obj1);
43722 PythonByteArray bytearray(PyRefType::Borrowed, obj1);
43727 PythonBytes bytes(PyRefType::Borrowed, obj1);
43992 PythonFile py_file(PyRefType::Borrowed, obj2);
44225 PythonList list(PyRefType::Borrowed, obj1);
44250 PythonList list(PyRefType::Borrowed, obj2);
44422 PythonInteger py_int(PyRefType::Borrowed, obj1);
44527 PythonInteger py_int(PyRefType::Borrowed, obj1);
44610 PythonInteger py_int(PyRefType::Borrowed, obj1);
45314 PythonString str(PyRefType::Borrowed, obj2);
45319 PythonByteArray bytearray(PyRefType::Borrowed, obj2);
45324 PythonBytes bytes(PyRefType::Borrowed, obj2);
49106 PythonFile py_file(PyRefType::Borrowed, obj1);
49222 PythonFile py_file(PyRefType::Borrowed, obj1);
49601 PythonList list(PyRefType::Borrowed, obj1);
49718 PythonList list(PyRefType::Borrowed, argv[1]);
52963 PythonList list(PyRefType::Borrowed, obj2);
52988 PythonList list(PyRefType::Borrowed, obj3);
53106 PythonList list(PyRefType::Borrowed, obj1);
53131 PythonList list(PyRefType::Borrowed, obj2);
53279 PythonList list(PyRefType::Borrowed, argv[2]);
53299 PythonList list(PyRefType::Borrowed, argv[3]);
56325 PythonList list(PyRefType::Borrowed, obj1);
56417 PythonList list(PyRefType::Borrowed, obj1);
56518 PythonList list(PyRefType::Borrowed, obj1);
56605 PythonList list(PyRefType::Borrowed, argv[1]);
56649 PythonList list(PyRefType::Borrowed, argv[1]);
56699 PythonList list(PyRefType::Borrowed, argv[1]);
59171 PythonString str(PyRefType::Borrowed, obj2);
59176 PythonByteArray bytearray(PyRefType::Borrowed, obj2);
59181 PythonBytes bytes(PyRefType::Borrowed, obj2);
59248 PythonString str(PyRefType::Borrowed, obj3);
59253 PythonByteArray bytearray(PyRefType::Borrowed, obj3);
59258 PythonBytes bytes(PyRefType::Borrowed, obj3);
64348 PythonInteger py_int(PyRefType::Borrowed, obj4);
64438 PythonInteger py_int(PyRefType::Borrowed, obj4);
64500 PythonInteger py_int(PyRefType::Borrowed, obj2);
64970 PythonInteger py_int(PyRefType::Borrowed, obj1);
79571 PythonObject frame_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_frame));
79572 PythonObject bp_loc_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_bp_loc));
79581 PythonObject args_arg(PyRefType::Owned, SBTypeToSWIGWrapper(args_value));
79618 PythonObject frame_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_frame));
79619 PythonObject wp_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_wp));
79663 PythonDictionary dict(PyRefType::Borrowed, py_dict);
79667 PythonCallable pfunc(PyRefType::Borrowed, pfunc_impl);
79689 PythonObject value_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_value));
79690 PythonObject options_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_options));
79726 PythonObject val_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_value));
79757 PythonObject debugger_arg(PyRefType::Owned, SBTypeToSWIGWrapper(debugger_sb));
79794 PythonObject tp_arg(PyRefType::Owned, SBTypeToSWIGWrapper(tp_value));
79809 PythonObject args_arg(PyRefType::Owned, SBTypeToSWIGWrapper(args_value));
79836 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor));
79846 PythonObject event_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_event));
79893 PythonObject bkpt_arg(PyRefType::Owned, SBTypeToSWIGWrapper(bkpt_value));
79896 PythonObject args_arg(PyRefType::Owned, SBTypeToSWIGWrapper(args_value));
79923 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor));
79932 PythonObject sym_ctx_arg(PyRefType::Owned, SBTypeToSWIGWrapper(sb_sym_ctx));
79974 PythonObject self(PyRefType::Borrowed, static_cast<PyObject*>(implementor));
79999 PythonObject self(PyRefType::Borrowed, implementor);
80048 PythonObject self(PyRefType::Borrowed, implementor);
80078 PythonObject self(PyRefType::Borrowed, implementor);
80213 PythonObject debugger_arg(PyRefType::Owned, SBTypeToSWIGWrapper(debugger_sb));
80214 PythonObject exe_ctx_arg(PyRefType::Owned, SBTypeToSWIGWrapper(exe_ctx_sb));
80215 PythonObject cmd_retobj_arg(PyRefType::Owned, SBTypeToSWIGWrapper(&cmd_retobj_sb));
80241 PythonObject self(PyRefType::Borrowed, implementor);
80249 PythonObject debugger_arg(PyRefType::Owned, SBTypeToSWIGWrapper(debugger_sb));
80250 PythonObject exe_ctx_arg(PyRefType::Owned, SBTypeToSWIGWrapper(exe_ctx_sb));
80251 PythonObject cmd_retobj_arg(PyRefType::Owned, SBTypeToSWIGWrapper(&cmd_retobj_sb));
80280 PythonObject process_arg(PyRefType::Owned, SBTypeToSWIGWrapper(process_sb));
80343 PythonObject py_module(PyRefType::Borrowed, (PyObject *)module);
80350 PythonObject target_arg(PyRefType::Owned, SBTypeToSWIGWrapper(target_sb));
80376 PythonObject process_arg(PyRefType::Owned, SBTypeToSWIGWrapper(process_sb));
80404 PythonObject thread_arg(PyRefType::Owned, SBTypeToSWIGWrapper(thread_sb));
80432 PythonObject target_arg(PyRefType::Owned, SBTypeToSWIGWrapper(target_sb));
80460 PythonObject frame_arg(PyRefType::Owned, SBTypeToSWIGWrapper(frame_sb));
80488 PythonObject value_arg(PyRefType::Owned, SBTypeToSWIGWrapper(value_sb));
80519 PythonObject debugger_arg(PyRefType::Owned, SBTypeToSWIGWrapper(debugger_sb));
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp 129 return PythonString(PyRefType::Owned, repr);
138 return PythonString(PyRefType::Owned, str);
200 return PythonObject(PyRefType::Owned,
207 return PythonDictionary(PyRefType::Borrowed, m_py_obj)
210 return PythonBoolean(PyRefType::Borrowed, m_py_obj)
213 return PythonInteger(PyRefType::Borrowed, m_py_obj)
216 return PythonList(PyRefType::Borrowed, m_py_obj).CreateStructuredArray();
218 return PythonString(PyRefType::Borrowed, m_py_obj).CreateStructuredString();
220 return PythonBytes(PyRefType::Borrowed, m_py_obj).CreateStructuredString();
222 return PythonByteArray(PyRefType::Borrowed, m_py_obj)
342 void PythonString::Convert(PyRefType &type, PyObject *&py_obj) {
351 if (type == PyRefType::Owned)
355 if (type == PyRefType::Owned)
358 type = PyRefType::Owned;
440 void PythonInteger::Convert(PyRefType &type, PyObject *&py_obj) {
455 if (type == PyRefType::Owned)
459 if (type == PyRefType::Owned)
462 type = PyRefType::Owned;
546 return PythonObject(PyRefType::Borrowed, PyList_GetItem(m_py_obj, index));
604 PythonObject object(PyRefType::Borrowed, py_object);
625 return PythonObject(PyRefType::Borrowed, PyTuple_GetItem(m_py_obj, index));
670 return PythonList(PyRefType::Owned, PyDict_Keys(m_py_obj));
763 return PythonModule(PyRefType::Borrowed, PyImport_AddModule(str.c_str()));
926 return PythonObject(PyRefType::Owned, PyObject_CallObject(m_py_obj, nullptr));
932 return PythonObject(PyRefType::Owned,
939 return PythonObject(PyRefType::Owned,
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h 131 T thing(PyRefType::Owned, obj);
149 T thing(PyRefType::Borrowed, obj);
222 PythonObject(PyRefType type, PyObject *py_obj) {
228 if (m_py_obj && Py_IsInitialized() && type == PyRefType::Borrowed)
233 : PythonObject(PyRefType::Borrowed, rhs.m_py_obj) {}
307 return T(PyRefType::Borrowed, m_py_obj);
394 return T(PyRefType::Borrowed, std::move(obj.get().get()));
410 static void Convert(PyRefType &type, PyObject *&py_obj) {}
412 TypedPythonObject(PyRefType type, PyObject *py_obj) {
418 else if (type == PyRefType::Owned)
427 using TypedPythonObject::TypedPythonObject;
444 using TypedPythonObject::TypedPythonObject;
462 using TypedPythonObject::TypedPythonObject;
470 static void Convert(PyRefType &type, PyObject *&py_obj);
485 using TypedPythonObject::TypedPythonObject;
492 static void Convert(PyRefType &type, PyObject *&py_obj);
503 using TypedPythonObject::TypedPythonObject;
518 using TypedPythonObject::TypedPythonObject;
540 using TypedPythonObject::TypedPythonObject;
560 using TypedPythonObject::TypedPythonObject;
586 using TypedPythonObject::TypedPythonObject;
616 using TypedPythonObject::TypedPythonObject;
662 using TypedPythonObject::TypedPythonObject;
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 767 PythonDictionary main_dict(PyRefType::Borrowed,
831 PythonObject module(PyRefType::Borrowed,
836 PythonDictionary module_dict(PyRefType::Borrowed,
967 PyRefType::Owned,
971 PyRefType::Owned,
1533 PythonObject implementor(PyRefType::Borrowed,
1539 PythonObject py_return(PyRefType::Owned,
1549 PythonList result_list(PyRefType::Borrowed, py_return.get());
1598 PythonObject implementor(PyRefType::Borrowed,
1604 PythonObject pmeth(PyRefType::Owned,
1625 PyRefType::Owned,
1634 PythonDictionary result_dict(PyRefType::Borrowed, py_return.get());
1653 PythonObject implementor(PyRefType::Borrowed,
1659 PythonObject pmeth(PyRefType::Owned,
1680 PyRefType::Owned,
1690 PythonList result_list(PyRefType::Borrowed, py_return.get());
1740 PythonObject implementor(PyRefType::Borrowed,
1746 PythonObject pmeth(PyRefType::Owned,
1766 PyRefType::Owned,
1776 PythonBytes result(PyRefType::Borrowed, py_return.get());
1799 PythonObject implementor(PyRefType::Borrowed,
1805 PythonObject pmeth(PyRefType::Owned,
1824 PythonObject py_return(PyRefType::Owned,
1835 PythonDictionary result_dict(PyRefType::Borrowed, py_return.get());
2506 PythonObject implementor(PyRefType::Borrowed,
2511 PythonObject pmeth(PyRefType::Owned,
2531 PyRefType::Owned,
2541 PythonString py_string(PyRefType::Borrowed, py_return.get());
3014 PythonObject implementor(PyRefType::Borrowed,
3020 PythonObject pmeth(PyRefType::Owned,
3040 PyRefType::Owned,
3050 PythonString py_string(PyRefType::Borrowed, py_return.get());
3069 PythonObject implementor(PyRefType::Borrowed,
3075 PythonObject pmeth(PyRefType::Owned,
3095 PyRefType::Owned,
3105 PythonInteger int_value(PyRefType::Borrowed, py_return.get());
3124 PythonObject implementor(PyRefType::Borrowed,
3130 PythonObject pmeth(PyRefType::Owned,
3151 PyRefType::Owned,
3161 PythonString str(PyRefType::Borrowed, py_return.get());
tools/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp 58 PythonObject owned_long(PyRefType::Owned, obj);
84 PythonInteger long_value(PyRefType::Owned, PyLong_FromLong(3));
88 PythonInteger borrowed_long(PyRefType::Borrowed, long_value.get());
111 PythonObject version_info_type(PyRefType::Owned,
176 PythonInteger python_int(PyRefType::Owned, py_int);
185 PythonInteger python_long(PyRefType::Owned, py_long);
201 PythonBoolean python_true(PyRefType::Owned, Py_True);
206 PythonBoolean python_false(PyRefType::Owned, Py_False);
212 PythonBoolean python_boolean(PyRefType::Owned, py_bool);
227 PythonBytes python_bytes(PyRefType::Owned, py_bytes);
248 PythonByteArray python_bytes(PyRefType::Owned, py_bytes);
267 PythonString python_string(PyRefType::Owned, py_string);
321 PythonList list(PyRefType::Owned, py_list);
339 PythonInteger chk_int(PyRefType::Borrowed, chk_value1.get());
340 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
367 PythonInteger chk_int(PyRefType::Borrowed, chk_value1.get());
368 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
408 PythonObject none_value(PyRefType::Borrowed, Py_None);
422 PythonObject none_value(PyRefType::Borrowed, Py_None);
434 PythonObject none_value(PyRefType::Borrowed, Py_None);
477 PythonDictionary dict(PyRefType::Owned, py_dict);
490 PythonInteger chk_int(PyRefType::Borrowed, chk_value1.get());
491 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
527 PythonInteger chk_int(PyRefType::Borrowed, chk_value1.get());
528 PythonString chk_str(PyRefType::Borrowed, chk_value2.get());
560 PythonObject none(PyRefType::Borrowed, Py_None);
608 PythonInteger python_ull_value(PyRefType::Owned,