|
LLDB mainline
|
Typedefs | |
| typedef struct swig_type_info | swig_type_info |
Enumerations | |
| enum class | PyObjectType { Unknown , None , Boolean , Integer , Dictionary , List , String , Bytes , ByteArray , Module , Callable , Tuple , File } |
| enum class | PyRefType { Borrowed , Owned } |
| enum class | PyInitialValue { Invalid , Empty } |
Functions | |
| template<typename T> | |
| T | Take (PyObject *obj) |
| template<typename T> | |
| T | Retain (PyObject *obj) |
| llvm::Error | nullDeref () |
| llvm::Error | exception (const char *s=nullptr) |
| llvm::Error | keyError () |
| const char * | py2_const_cast (const char *s) |
| template<typename T> | |
| llvm::Expected< T > | As (llvm::Expected< PythonObject > &&obj) |
| template<> | |
| llvm::Expected< bool > | As< bool > (llvm::Expected< PythonObject > &&obj) |
| template<> | |
| llvm::Expected< long long > | As< long long > (llvm::Expected< PythonObject > &&obj) |
| template<> | |
| llvm::Expected< unsigned long long > | As< unsigned long long > (llvm::Expected< PythonObject > &&obj) |
| template<> | |
| llvm::Expected< std::string > | As< std::string > (llvm::Expected< PythonObject > &&obj) |
| template<typename T> | |
| T | unwrapOrSetPythonException (llvm::Expected< T > expected) |
| template<typename T> | |
| T | unwrapIgnoringErrors (llvm::Expected< T > expected) |
| llvm::Expected< PythonObject > | runStringOneLine (const llvm::Twine &string, const PythonDictionary &globals, const PythonDictionary &locals) |
| llvm::Expected< PythonObject > | runStringMultiLine (const llvm::Twine &string, const PythonDictionary &globals, const PythonDictionary &locals) |
| PyObject * | RunString (const char *str, int start, PyObject *globals, PyObject *locals) |
| int | RunSimpleString (const char *str) |
| python::PythonObject | ToSWIGHelper (void *obj, swig_type_info *info) |
| void * | LLDBSWIGPython_CastPyObjectToSBData (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBBreakpoint (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBBreakpointLocation (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBAttachInfo (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBLaunchInfo (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBError (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBEvent (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBStream (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBThread (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBFrame (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBSymbolContext (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBValue (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBValueList (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBMemoryRegionInfo (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBExecutionContext (PyObject *data) |
| void * | LLDBSWIGPython_CastPyObjectToSBFrameList (PyObject *data) |
| typedef struct swig_type_info lldb_private::python::swig_type_info |
Definition at line 37 of file SWIGPythonBridge.h.
|
strong |
| Enumerator | |
|---|---|
| Invalid | |
| Empty | |
Definition at line 181 of file PythonDataObjects.h.
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| None | |
| Boolean | |
| Integer | |
| Dictionary | |
| List | |
| String | |
| Bytes | |
| ByteArray | |
| Module | |
| Callable | |
| Tuple | |
| File | |
Definition at line 81 of file PythonDataObjects.h.
|
strong |
| Enumerator | |
|---|---|
| Borrowed | |
| Owned | |
Definition at line 97 of file PythonDataObjects.h.
| llvm::Expected< T > lldb_private::python::As | ( | llvm::Expected< PythonObject > && | obj | ) |
Definition at line 376 of file PythonDataObjects.h.
References Borrowed.
Referenced by lldb_private::python::PythonCallable::GetArgInfo(), lldb_private::ScriptInterpreterPython::GetInterpreterInfo(), lldb_private::ScriptInterpreterPythonImpl::GetSysModuleDictionary(), and lldb_private::python::PythonScript::Init().
| llvm::Expected< bool > lldb_private::python::As< bool > | ( | llvm::Expected< PythonObject > && | obj | ) |
Referenced by GetOptionsForPyObject().
| llvm::Expected< long long > lldb_private::python::As< long long > | ( | llvm::Expected< PythonObject > && | obj | ) |
| llvm::Expected< std::string > lldb_private::python::As< std::string > | ( | llvm::Expected< PythonObject > && | obj | ) |
Referenced by lldb_private::python::PythonException::ReadBacktrace().
| llvm::Expected< unsigned long long > lldb_private::python::As< unsigned long long > | ( | llvm::Expected< PythonObject > && | obj | ) |
|
inline |
Definition at line 170 of file PythonDataObjects.h.
Referenced by lldb_private::python::PythonObject::AsLongLong(), lldb_private::python::PythonObject::AsModuloUnsignedLongLong(), lldb_private::python::PythonObject::AsUnsignedLongLong(), lldb_private::python::PythonString::AsUTF8(), lldb_private::python::PythonObject::Call(), lldb_private::python::PythonObject::CallMethod(), lldb_private::python::PythonFile::Check(), lldb_private::python::PythonFile::FromFile(), lldb_private::python::PythonModule::Get(), lldb_private::python::PythonObject::GetAttribute(), lldb_private::python::PythonDictionary::GetItem(), lldb_private::python::PythonObject::GetType(), lldb_private::python::PythonModule::Import(), lldb_private::python::PythonScript::Init(), lldb_private::python::PythonObject::IsInstance(), lldb_private::python::PythonObject::IsTrue(), runStringMultiLine(), runStringOneLine(), and lldb_private::python::PythonDictionary::SetItem().
|
inline |
Definition at line 174 of file PythonDataObjects.h.
Referenced by lldb_private::python::PythonDictionary::GetItem().
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBAttachInfo | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBBreakpoint | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBBreakpointLocation | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBData | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBError | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBEvent | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBExecutionContext | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBFrame | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBFrameList | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBLaunchInfo | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBMemoryRegionInfo | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBStream | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBSymbolContext | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBThread | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBValue | ( | PyObject * | data | ) |
| void * lldb_private::python::LLDBSWIGPython_CastPyObjectToSBValueList | ( | PyObject * | data | ) |
|
inline |
Definition at line 165 of file PythonDataObjects.h.
Referenced by lldb_private::python::PythonObject::AsLongLong(), lldb_private::python::PythonObject::AsModuloUnsignedLongLong(), lldb_private::python::PythonObject::AsUnsignedLongLong(), lldb_private::python::PythonString::AsUTF8(), lldb_private::python::PythonModule::Get(), lldb_private::python::PythonCallable::GetArgInfo(), lldb_private::python::PythonObject::GetAttribute(), lldb_private::python::PythonDictionary::GetItem(), lldb_private::python::PythonObject::GetType(), lldb_private::python::PythonObject::IsInstance(), lldb_private::python::PythonObject::IsTrue(), runStringMultiLine(), runStringOneLine(), and lldb_private::python::PythonDictionary::SetItem().
|
inline |
Definition at line 179 of file PythonDataObjects.h.
Referenced by lldb_private::python::PythonObject::Call(), and lldb_private::python::PythonObject::CallMethod().
| T lldb_private::python::Retain | ( | PyObject * | obj | ) |
Definition at line 133 of file PythonDataObjects.h.
References Borrowed.
Referenced by lldb_private::python::PythonFile::FromFile(), lldb_private::python::PythonModule::Get(), lldb_private::python::PythonModule::GetDictionary(), and lldb_private::python::PythonDictionary::GetItem().
| int lldb_private::python::RunSimpleString | ( | const char * | str | ) |
Definition at line 1472 of file PythonDataObjects.cpp.
References RunString().
Referenced by lldb_private::IOHandlerPythonInterpreter::Run(), and lldb_private::ScriptInterpreterPythonImpl::ScriptInterpreterPythonImpl().
| PyObject * lldb_private::python::RunString | ( | const char * | str, |
| int | start, | ||
| PyObject * | globals, | ||
| PyObject * | locals ) |
Definition at line 1454 of file PythonDataObjects.cpp.
Referenced by lldb_private::python::PythonScript::Init(), RunSimpleString(), and runStringMultiLine().
| llvm::Expected< PythonObject > lldb_private::python::runStringMultiLine | ( | const llvm::Twine & | string, |
| const PythonDictionary & | globals, | ||
| const PythonDictionary & | locals ) |
Definition at line 1442 of file PythonDataObjects.cpp.
References exception(), lldb_private::python::PythonObject::get(), lldb_private::python::PythonObject::IsValid(), nullDeref(), RunString(), and Take().
| llvm::Expected< PythonObject > lldb_private::python::runStringOneLine | ( | const llvm::Twine & | string, |
| const PythonDictionary & | globals, | ||
| const PythonDictionary & | locals ) |
Definition at line 1416 of file PythonDataObjects.cpp.
References exception(), lldb_private::python::PythonObject::get(), lldb_private::python::PythonObject::IsValid(), nullDeref(), and Take().
| T lldb_private::python::Take | ( | PyObject * | obj | ) |
Definition at line 115 of file PythonDataObjects.h.
References Owned.
Referenced by lldb_private::python::PythonObject::Call(), lldb_private::python::PythonObject::CallMethod(), lldb_private::python::PythonFile::FromFile(), lldb_private::python::PythonString::FromUTF8(), lldb_private::python::PythonObject::GetAttribute(), lldb_private::python::PythonObject::GetType(), lldb_private::python::PythonModule::Import(), lldb_private::python::PythonScript::Init(), lldb_private::python::PythonByteArray::PythonByteArray(), lldb_private::python::PythonDictionary::PythonDictionary(), lldb_private::python::PythonList::PythonList(), lldb_private::python::PythonList::PythonList(), lldb_private::python::PythonTuple::PythonTuple(), lldb_private::python::PythonTuple::PythonTuple(), runStringMultiLine(), runStringOneLine(), lldb_private::python::PythonBytes::SetBytes(), lldb_private::python::PythonInteger::SetInteger(), and lldb_private::python::PythonBoolean::SetValue().
| python::PythonObject lldb_private::python::ToSWIGHelper | ( | void * | obj, |
| swig_type_info * | info ) |
| T lldb_private::python::unwrapIgnoringErrors | ( | llvm::Expected< T > | expected | ) |
Definition at line 698 of file PythonDataObjects.h.
Referenced by lldb_private::ScriptInterpreterPython::GetInterpreterInfo().
| T lldb_private::python::unwrapOrSetPythonException | ( | llvm::Expected< T > | expected | ) |
Definition at line 685 of file PythonDataObjects.h.