summaryrefslogtreecommitdiffstats
path: root/lldb/utils/test/lldb-disasm.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a Python script to locate each binary file under a root directory which ↵Johnny Chen2011-08-191-18/+22
| | | | | | | | | | | | | | | | matches some pathname pattern and to invoke lldb-disasm.py on the binary file to disassemble its symbols. The number of symbols can be specified by, for example, '-n 10000', to specify 10,000 symbols to disassemble for each module. By default, only 1000 symbols from each module are disassembled. Example: utils/test/run-dis.py -r '/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3/Symbols' -p '^/System/Library/.*Frameworks/.*\.framework/[^/]+$' tries to disassemble every public/private frameworks (by default only 1000 symbols are disassembled) under iOS4.3. llvm-svn: 138078
* Fix TypeError exception for re.compile().Johnny Chen2011-08-191-1/+2
| | | | llvm-svn: 138045
* Add an option (-p regexp-pattern) to specify the regular expression symbol ↵Johnny Chen2011-08-181-9/+28
| | | | | | | | | | | | pattern we're interested in disassembling. An example: utils/test/lldb-disasm.py -C "platform select remote-ios" -o "-b -n" -e '~/CoreFoundation' -n 20 -p '-\[NSArray .+\]' disassembles the first 20 NSArray instance methods found in the CoreFoundation module. llvm-svn: 138002
* Add an option '-q' to have quiet disassembly by not printing out the ↵Johnny Chen2011-08-181-11/+22
| | | | | | | | | | | | disassembled result. This could be useful by reducing the strain on standard output. Example: utils/test/lldb-disasm.py -C "platform select remote-ios" -o "-b -n" -e '~/CoreFoundation' -n 50 -q llvm-svn: 137988
* Use built-in truth value testing.Johnny Chen2011-05-251-1/+1
| | | | llvm-svn: 132078
* Add a Python utility to help convert the Mail.app saved 'Raw Message Source' ↵Johnny Chen2011-05-231-5/+5
| | | | | | .eml file to a git-am friendly file. llvm-svn: 131924
* Modified to take advantage of the iteration protocol for our lldb container ↵Johnny Chen2011-04-281-3/+2
| | | | | | objects. llvm-svn: 130457
* Take advantage of the newly added SBSymbol.GetType() API to check whether weJohnny Chen2011-03-311-61/+12
| | | | | | have a Code symbol and do disassembly on it. llvm-svn: 128604
* Add a generator to iterate through the code symbols for a given target.Johnny Chen2011-03-311-1/+38
| | | | | | To be modified to take advantage of the new SBSymbol API which checks a symbol for its type. llvm-svn: 128601
* Add an option to specify the symbols to disassemble instead of the existing ↵Johnny Chen2011-03-301-23/+36
| | | | | | | | | | | | 'num of symbols to disassemble' option. If both are present, the 'symbols to disassemble' overrides the 'num of symbols to disassemble'. An example usage: $ ./lldb-disasm.py -C 'platform create remote-ios' -e /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/libSystem.B.dylib -o '-r -n' -s vprintf -s acosf_special llvm-svn: 128569
* Add the ability to invoke lldb's disassemble command on the symbols digested ↵Johnny Chen2011-03-291-17/+74
| | | | | | | | | from the 'image dump symtab' command. The number of symbols to disassemble can be specified by the '-n Num' option, or unlimited if not specified. llvm-svn: 128442
* Doc string change.Johnny Chen2011-03-281-1/+1
| | | | llvm-svn: 128429
* Add an initial version of lldb-disasm.py script whose purpose is to iterate ↵Johnny Chen2011-03-281-0/+151
through all the symbols for an executable image and to issue the lldb 'disassemble' command on each symbol. The initial version just dumps the symbol table. llvm-svn: 128428
OpenPOWER on IntegriCloud