Skip to content

Commit

Permalink
Added section cmd documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekSelander authored Feb 4, 2018
1 parent cc58213 commit f2dade1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Prints the location (on disk) of the filepath to the executable
(lldb) pexecutable

### pframework
Prints the location (on disk) of a frmaework
Prints the location (on disk) of a framework

(lldb) pframework UIKit

Expand Down Expand Up @@ -169,6 +169,27 @@ Dumps all the NSObject inherited classes in the process. If you give it a module
(lldb) dclass -I UIView

### section
Displays data in the Mach-O segments/sections of the executable or frameworks loaded into the proc

# Dump the Mach-O segments to the main executable
(lldb) section
# Dump the Mach-O segments to UIKit
(lldb) section UIKit
# Dump the Mach-O sections of the __TEXT segment of UIKit
(lldb) section UIKit __TEXT
# Get the load address of all the hard-coded uint8_t * strings in the UIKit binary
(lldb) section UIKit __TEXT.__cstring -l
# Get the entitlements for the executable
(lldb) section __TEXT.__entitlements
# Get all the load address to the lazy symbol stubs in the main executable
(lldb) section __DATA.__la_symbol_ptr -l

### dd
Alternative to LLDB's `disassemble` command. Uses colors. Terminal only
![yoink example](https://github.com/DerekSelander/LLDB/raw/master/Media/dd.png)
Expand Down

0 comments on commit f2dade1

Please sign in to comment.