Skip to content

ddeville/block-lldb-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages