From b4892cd266dfafb9c6986ee46a8025c8031c3792 Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 13 May 2014 22:02:48 +0000 Subject: 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. llvm-svn: 208732 --- lldb/scripts/Python/interface/SBThread.i | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lldb/scripts/Python/interface') 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.''' -- cgit v1.2.3