FISH-LLL / block-lldb-script

A Python script for lldb that prints an Objective-C block signature and disassemble its invoke function

Home Page:http://ddeville.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Python script to disassemble an Objective-C block in lldb

=================

A Python script for lldb that prints an Objective-C block signature and disassemble its invoke function.

In order to use the script in an embedded python interpreter using lldb you can import it by running the command

command script import /path/to/block.py`

Alternatively, you can add command script import /path/to/block.py to your ~/.lldbinit.

Usage:

block_disass variable

The following options are available:

-d, --disass
		Disassembles the invoke function of the block. If no option is specified,
		--disass is assumed.

-n, --number-instructions
		The number of instructions in the invoke function to disassemble.

-s, --signature
		Prints the block signature, formatted with NSMethodSignature.
		
Note that --number-instructions is only taken into account when used with --disass.

About

A Python script for lldb that prints an Objective-C block signature and disassemble its invoke function

http://ddeville.me


Languages

Language:Python 100.0%