summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a little spice to the script to allow us to specify a function name to ↵Johnny Chen2011-05-251-3/+20
| | | | | | | | break at and to disassemble. Usage: disasm.py [-n name] executable-image By default, it breaks at and disassembles the 'main' function. llvm-svn: 132090
* Add a little twist to the disasm.py script so that it is possible to ↵Johnny Chen2011-05-251-7/+12
| | | | | | | | terminate the inferior process by entering 'Ctrl-D' or 'quit'. llvm-svn: 132088
* Modified to use SBTarget.LaunchSimple() API.Johnny Chen2011-05-251-2/+1
| | | | llvm-svn: 132082
* Use built-in truth value testing.Johnny Chen2011-05-251-6/+6
| | | | llvm-svn: 132079
* Modified to take advantage of the iteration protocol for our lldb container ↵Johnny Chen2011-04-281-12/+8
| | | | | | objects. llvm-svn: 130456
* The example had gotten stale, so I made it work again, and for fun printed ↵Jim Ingham2011-03-301-2/+16
| | | | | | out the frame registers as well. llvm-svn: 128523
* There's no need to explicitly call lldb.SBDebugger.Initialize() now. It is doneJohnny Chen2010-10-151-3/+0
| | | | | | when importing the lldb module. llvm-svn: 116585
* Minor change.Johnny Chen2010-10-091-1/+1
| | | | llvm-svn: 116127
* Cleaned up the SWIG stuff so all includes happen as they should, no pullingGreg Clayton2010-10-071-35/+48
| | | | | | | | | | | | | | | | | | tricks to get types to resolve. I did this by correctly including the correct files: stdint.h and all lldb-*.h files first before including the API files. This allowed me to remove all of the hacks that were in the lldb.swig file and it also allows all of the #defines in lldb-defines.h and enumerations in lldb-enumerations.h to appear in the lldb.py module. This will make the python script code a lot more readable. Cleaned up the "process launch" command to not execute a "process continue" command, it now just does what it should have with the internal API calls instead of executing another command line command. Made the lldb_private::Process set the state to launching and attaching if WillLaunch/WillAttach return no error respectively. llvm-svn: 115902
* Fixed a few issues with the example script.Greg Clayton2010-10-061-2/+2
| | | | llvm-svn: 115801
* Added the first of hopefully many python example scripts that show how toGreg Clayton2010-10-061-0/+79
use the python API that is exposed through SWIG to do some cool stuff. Also fixed synchronous debugging so that all process control APIs exposed through the python API will now wait for the process to stop if you set the async mode to false (see disasm.py). llvm-svn: 115738
OpenPOWER on IntegriCloud