diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-05-13 22:02:48 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-05-13 22:02:48 +0000 |
commit | b4892cd266dfafb9c6986ee46a8025c8031c3792 (patch) | |
tree | 5b127dbb778899f9efbdd51026ef74edeceefbd1 /lldb/scripts/Python/interface | |
parent | 1b91aa2cf5141ee3dc4cbbf2e6bdb931b51411ff (diff) | |
download | bcm5719-llvm-b4892cd266dfafb9c6986ee46a8025c8031c3792.tar.gz bcm5719-llvm-b4892cd266dfafb9c6986ee46a8025c8031c3792.zip |
Add a new SBThread::SafeToCallFunctions API; this calls over to
the SystemRuntime to check if a thread will have any problems
performing an inferior function call so the driver can skip
making that function call on that thread. Often the function
call can be executed on another thread instead.
<rdar://problem/16777874>
llvm-svn: 208732
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBThread.i | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBThread.i b/lldb/scripts/Python/interface/SBThread.i index ecf0475dec1..d1dd82a0cda 100644 --- a/lldb/scripts/Python/interface/SBThread.i +++ b/lldb/scripts/Python/interface/SBThread.i @@ -297,6 +297,16 @@ public: uint32_t GetExtendedBacktraceOriginatingIndexID(); + %feature("autodoc"," + Takes no arguments, returns a bool. + lldb may be able to detect that function calls should not be executed + on a given thread at a particular point in time. It is recommended that + this is checked before performing an inferior function call on a given + thread. + ") SafeToCallFunctions; + bool + SafeToCallFunctions (); + %pythoncode %{ class frames_access(object): '''A helper object that will lazily hand out frames for a thread when supplied an index.''' |