diff options
author | Greg Clayton <gclayton@apple.com> | 2012-10-18 22:40:37 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-10-18 22:40:37 +0000 |
commit | c9d645d30619ffad3e256928cb3d8cdc4c541998 (patch) | |
tree | dcdb3b2a37b27ad64e155f211f9c93b1e5f04d0c /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | |
parent | ed8560b09c3fa6f83350aa065b74e31a9d77e469 (diff) | |
download | bcm5719-llvm-c9d645d30619ffad3e256928cb3d8cdc4c541998.tar.gz bcm5719-llvm-c9d645d30619ffad3e256928cb3d8cdc4c541998.zip |
<rdar://problem/12491420>
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
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h')
-rw-r--r-- | lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h index 5711426ca8f..8dccf245a91 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 (); |