summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/append-debugger-id.py
Commit message (Collapse)AuthorAgeFilesLines
* Move the iteration protocol of lldb objects to the auto-generated lldb ↵Johnny Chen2011-04-281-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Python module. This is so that the objects which support the iteration protocol are immediately obvious from looking at the lldb.py file. SBTarget supports two types of iterations: module and breakpoint. For an SBTarget instance, you will need to issue either: for m in target.module_iter() or for b in target.breakpoint_iter() For other single iteration protocol objects, just use, for example: for thread in process: ID = thread.GetThreadID() for frame in thread: frame.Disassemble() .... llvm-svn: 130442
* Wrap the file writing operations inside a with statement to simplify code.Johnny Chen2010-10-141-11/+3
| | | | llvm-svn: 116486
* Change the call within lldb.py to 'SBDebugger.Initialize()' from ↵Johnny Chen2010-10-141-1/+4
| | | | | | | | | | | | 'lldb.SBDebugger.Initialize()'. Inside the lldb module, there's no need (and as a matter of fact, incorrect) to specify the 'lldb' module name. Comment out the call to lldb.SBDebugger.Initialize() within the test driver itself, since it is already done when we import the lldb.py module. llvm-svn: 116485
* Fix some memory leaks.Caroline Tice2010-10-121-0/+1
| | | | | | | Add call to lldb.SBDebugger.Initialize() to lldb.py, so it automatically gets called when the lldb Python module gets loaded. llvm-svn: 116345
* Add a unique ID to each debugger instance.Caroline Tice2010-06-301-0/+27
Add functions to look up debugger by id Add global variable to lldb python module, to hold debugger id Modify embedded Python interpreter to update the global variable with the id of its current debugger. Modify the char ** typemap definition in lldb.swig to accept 'None' (for NULL) as a valid value. The point of all this is so that, when you drop into the embedded interpreter from the command interpreter (or when doing Python-based breakpoint commands), there is a way for the Python side to find/get the correct debugger instance ( by checking debugger_unique_id, then calling SBDebugger::FindDebuggerWithID on it). llvm-svn: 107287
OpenPOWER on IntegriCloud