From c9d645d30619ffad3e256928cb3d8cdc4c541998 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 18 Oct 2012 22:40:37 +0000 Subject: Added a new setting that allows a python OS plug-in to detect threads and provide registers for memory threads. To enable this you set the setting: settings set target.process.python-os-plugin-path lldb/examples/python/operating_system.py Then run your program and see the extra threads. llvm-svn: 166244 --- lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h') diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h index 5711426..8dccf24 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h @@ -43,7 +43,8 @@ public: //------------------------------------------------------------------ // Class Methods //------------------------------------------------------------------ - OperatingSystemPython (lldb_private::Process *process); + OperatingSystemPython (lldb_private::Process *process, + const lldb_private::FileSpec &python_module_path); virtual ~OperatingSystemPython (); @@ -78,6 +79,10 @@ public: protected: + bool IsValid() const + { + return m_python_object != NULL; + } DynamicRegisterInfo * GetDynamicRegisterInfo (); -- cgit v1.1