summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/disasm.py
Commit message (Collapse)AuthorAgeFilesLines
* Python 2/3 compatibility: from __future__ import print_functionSerge Guelton2019-03-211-18/+18
| | | | | | Differential Revision: https://reviews.llvm.org/D59580 llvm-svn: 356695
* *** This commit represents a complete reformatting of the LLDB source codeKate Stone2016-09-061-21/+28
| | | | | | | | | | | | | | | | | | | | | | | *** to conform to clang-format’s LLVM style. This kind of mass change has *** two obvious implications: Firstly, merging this particular commit into a downstream fork may be a huge effort. Alternatively, it may be worth merging all changes up to this commit, performing the same reformatting operation locally, and then discarding the merge for this particular commit. The commands used to accomplish this reformatting were as follows (with current working directory as the root of the repository): find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} + find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ; The version of clang-format used was 3.9.0, and autopep8 was 1.2.4. Secondly, “blame” style tools will generally point to this commit instead of a meaningful prior commit. There are alternatives available that will attempt to look through this change and find the appropriate prior commit. YMMV. llvm-svn: 280751
* Add usage docstring to SBValue.h, and minor update of docstrings for ↵Johnny Chen2011-07-151-1/+1
| | | | | | SBValueList.h. llvm-svn: 135230
* Remove unnecessary 'import' statement.Johnny Chen2011-07-061-1/+0
| | | | llvm-svn: 134519
* 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