Home
last modified time | relevance | path

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

/freebsd/contrib/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()
83 static PythonObject ToSWIGWrapper(std::unique_ptr<lldb::SBValue> value_sb);
84 static PythonObject ToSWIGWrapper(lldb::ValueObjectSP value_sp);
85 static PythonObject ToSWIGWrapper(lldb::TargetSP target_sp);
86 static PythonObject ToSWIGWrapper(lldb::ProcessSP process_sp);
87 static PythonObject ToSWIGWrapper(lldb::ThreadPlanSP thread_plan_sp);
[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()
83 void PythonObject::Reset() { in Reset()
97 Expected<long long> PythonObject::AsLongLong() const { in AsLongLong()
107 Expected<unsigned long long> PythonObject::AsUnsignedLongLong() const { in AsUnsignedLongLong()
118 Expected<unsigned long long> PythonObject::AsModuloUnsignedLongLong() const { in AsModuloUnsignedLongLong()
135 void PythonObject::Dump(Stream &strm) const { in Dump()
155 PyObjectType PythonObject::GetObjectType() const { in GetObjectType()
[all …]
H A DScriptedPythonInterface.h
H A DScriptedPythonInterface.cpp
H A DScriptInterpreterPython.cpp626 PythonObject &save_file, in SetStdHandle()
744 PythonObject &main_module = GetMainModule(); in GetSessionDictionary()
779 auto pfunc = PythonObject::ResolveNameWithDictionary<PythonCallable>( in GetMaxPositionalArgumentsForCallable()
812 PythonObject module(PyRefType::Borrowed, in GetEmbeddedInterpreterModuleObjects()
883 PythonObject pargs( in ExecuteOneLine()
887 PythonObject return_value( in ExecuteOneLine()
1015 Expected<PythonObject> maybe_py_return = in ExecuteOneLineWithReturn()
1034 PythonObject py_return = std::move(maybe_py_return.get()); in ExecuteOneLineWithReturn()
1139 Expected<PythonObject> return_value = in ExecuteMultipleLines()
1480 PythonObject ret_val = SWIGBridge::LLDBSWIGPython_CreateFrameRecognizer( in CreateFrameRecognizer()
[all …]
H A DScriptInterpreterPythonImpl.h407 python::PythonObject &save_file, const char *mode);
409 python::PythonObject m_saved_stdin;
410 python::PythonObject m_saved_stdout;
411 python::PythonObject m_saved_stderr;
415 python::PythonObject m_run_one_line_function;
416 python::PythonObject m_run_one_line_str_global;
H A DScriptedThreadPythonInterface.cpp
H A DScriptedPlatformPythonInterface.cpp
H A DScriptedProcessPythonInterface.cpp
/freebsd/contrib/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::ThreadPlanSP thread_plan_sp) {
31 PythonObject SWIGBridge::ToSWIGWrapper(lldb::BreakpointSP breakpoint_sp) {
36 PythonObject SWIGBridge::ToSWIGWrapper(const Status& status) {
40 PythonObject SWIGBridge::ToSWIGWrapper(std::unique_ptr<lldb::SBStructuredData> data_sb) {
44 PythonObject SWIGBridge::ToSWIGWrapper(const StructuredDataImpl &data_impl) {
[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_arg = SWIGBridge::ToSWIGWrapper(valobj_sp);
[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);
/freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/
H A DScriptedPythonInterface.h100 PythonObject result = {}; in CreatePluginObject()
103 result = PythonObject(PyRefType::Borrowed, in CreatePluginObject()
115 PythonObject::ResolveNameWithDictionary<python::PythonCallable>( in CreatePluginObject()
137 llvm::Expected<PythonObject> expected_return_object = in CreatePluginObject()
157 PythonObject obj_class = result.GetAttributeValue("__class__"); in CreatePluginObject()
166 PythonObject object_class_mapping_proxy = in CreatePluginObject()
227 T ExtractValueFromPythonObject(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
247 PythonObject implementor(PyRefType::Borrowed, in Dispatch()
260 llvm::Expected<PythonObject> expected_return_object = in Dispatch()
277 PythonObject py_return = std::move(expected_return_object.get()); in Dispatch()
[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()
58 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
70 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
82 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
98 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
113 lldb::ProcessAttachInfoSP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
128 lldb::ProcessLaunchInfoSP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
144 std::optional<MemoryRegionInfo>>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()