teak-llvm/lldb/scripts/Python/interface
Greg Clayton a4d8747d0f <rdar://problem/13010007>
Added the ability for OS plug-ins to lazily populate the thread this. The python OS plug-in classes can now implement the following method:

class OperatingSystemPlugin:
  def create_thread(self, tid, context):
    # Return a dictionary for a new thread to create it on demand

This will add a new thread to the thread list if it doesn't already exist. The example code in lldb/examples/python/operating_system.py has been updated to show how this call us used.

Cleaned up the code in PythonDataObjects.cpp/h:
- renamed all classes that started with PythonData* to be Python*. 
- renamed PythonArray to PythonList. Cleaned up the code to use inheritance where
- Centralized the code that does ref counting in the PythonObject class to a single function.
- Made the "bool PythonObject::Reset(PyObject *)" function be virtual so each subclass can correctly check to ensure a PyObject is of the right type before adopting the object.
- Cleaned up all APIs and added new constructors for the Python* classes to they can all construct form:
	- PyObject *
	- const PythonObject &
	- const lldb::ScriptInterpreterObjectSP &

Cleaned up code in ScriptInterpreterPython:
- Made calling python functions safer by templatizing the production of value formats. Python specifies the value formats based on built in C types (long, long long, etc), and code often uses typedefs for uint32_t, uint64_t, etc when passing arguments down to python. We will now always produce correct value formats as the templatized code will "do the right thing" all the time.
- Fixed issues with the ScriptInterpreterPython::Locker where entering the session and leaving the session had a bunch of issues that could cause the "lldb" module globals lldb.debugger, lldb.target, lldb.process, lldb.thread, and lldb.frame to not be initialized.

llvm-svn: 172873
2013-01-18 23:41:08 +00:00
..
SBAddress.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBBlock.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBBreakpoint.i Add one-shot breakpoints (-o option to "break set") and a tbreak alias for our gdb friends. 2012-10-05 19:16:31 +00:00
SBBreakpointLocation.i Add GetID to the .i file. 2012-05-16 17:15:08 +00:00
SBBroadcaster.i Add docstring for SBBroadcaster class. 2011-07-20 22:29:58 +00:00
SBCommandInterpreter.i Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
SBCommandReturnObject.i Removing the two extra GetXSize(bool) calls since we do not desire to support them long-term 2012-10-16 21:11:14 +00:00
SBCommunication.i Add a general mechanism to wait on the debugger for Broadcasters of a given class/event bit set. 2012-02-16 06:50:00 +00:00
SBCompileUnit.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBData.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBDebugger.i Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
SBDeclaration.i <rdar://problem/12462744> Implement a new SBDeclaration class to wrap an lldb_private::Declaration - make a GetDeclaration() API on SBValue to return a declaration. This will only work for vroot variables as they are they only objects for which we currently provide a valid Declaration 2012-10-10 22:54:17 +00:00
SBError.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBEvent.i Add a general mechanism to wait on the debugger for Broadcasters of a given class/event bit set. 2012-02-16 06:50:00 +00:00
SBExpressionOptions.i Separated the "expr --unwind-on-error" behavior into two parts, actual errors (i.e. crashes) which continue to be 2013-01-15 02:47:48 +00:00
SBFileSpec.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBFileSpecList.i Added the ability to restrict breakpoints by function name, function regexp, selector 2011-09-23 00:54:11 +00:00
SBFrame.i Add the ability to set timeout & "run all threads" options both from the "expr" command and from 2012-10-16 21:41:58 +00:00
SBFunction.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBHostOS.i Move the rest of the SB headers to interface files. 2011-07-19 22:41:47 +00:00
SBInputReader.i Move the rest of the SB headers to interface files. 2011-07-19 22:41:47 +00:00
SBInstruction.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBInstructionList.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBLineEntry.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBListener.i Add a general mechanism to wait on the debugger for Broadcasters of a given class/event bit set. 2012-02-16 06:50:00 +00:00
SBModule.i <rdar://problem/13021266> 2013-01-16 18:53:52 +00:00
SBProcess.i <rdar://problem/13010007> 2013-01-18 23:41:08 +00:00
SBSection.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBSourceManager.i Add some docstrings for SBSourceManager class. 2011-07-19 23:35:10 +00:00
SBStream.i Fix a build warning and a dangerous possible crasher. 2012-10-08 23:50:19 +00:00
SBStringList.i Move the rest of the SB headers to interface files. 2011-07-19 22:41:47 +00:00
SBSymbol.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBSymbolContext.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBSymbolContextList.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBTarget.i <rdar://problem/13021266> 2013-01-16 18:53:52 +00:00
SBThread.i Fixed a few bugs in the "step in" thread plan logic. 2012-12-12 19:58:40 +00:00
SBType.i Added GetCanonicalType() to SBType: 2012-12-08 00:17:07 +00:00
SBTypeCategory.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBTypeFilter.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBTypeFormat.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBTypeNameSpecifier.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBTypeSummary.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBTypeSynthetic.i Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. 2012-06-29 22:00:42 +00:00
SBValue.i <rdar://problem/12493007> 2012-10-23 01:50:10 +00:00
SBValueList.i Make every Python API __len__() method return a PyIntObject. 2012-05-11 20:39:42 +00:00
SBWatchpoint.i Adding events when watchpoints are set or changed. 2012-12-18 02:03:49 +00:00