-
Notifications
You must be signed in to change notification settings - Fork 0
/
lldbinit
36 lines (27 loc) · 2.01 KB
/
lldbinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# MARK: Scripts
command script import ~/lldb/LLDB/lldb_commands/dslldb.py
command script import ~/lldb/chisel/fblldb.py
command script import ~/lldb/scripts/SwiftDemangle.py
command script import ~/lldb/scripts/ToFile.py
command script import ~/lldb/scripts/spo.py
# MARK: Alias
#
command alias stop process interrupt
command regex -h "Toggle a constraint's active property." -s 'tc <constraint_address>' -- tc 's/(0x[0-9a-f]+)/expression -l objc -O -- ((NSLayoutConstraint*) %1).active = !((NSLayoutConstraint*) %1).active/'
# MARK: Debug tools
# Flex: https://github.com/FLEXTool/FLEX
command alias flex expr -l objc++ -- (void *)dlopen("/Users/gonzalorehu/Library/Developer/Xcode/DerivedData/HelloDebugTools-ayjputndabnehgbpakxqkxnlifmr/Build/Products/Debug-iphonesimulator/FLEX/FLEX.framework/FLEX", 0x2)
command alias flex_toggle expr expression -l objc++ -O -- [[FLEXManager sharedManager] toggleExplorer]
# Lookin: https://github.com/hughkli/Lookin/
command alias look expr -l objc++ -- (void *)dlopen("/Users/gonzalorehu/Library/Developer/Xcode/DerivedData/HelloDebugTools-ayjputndabnehgbpakxqkxnlifmr/Build/Products/Debug-iphonesimulator/LookinServer/LookinServer.framework/LookinServer", 0x2)
# Reveal: https://revealapp.com/
command alias load_reveal expr -l objc++ -- (void *)dlopen("/Users/gonzalorehu/Library/Application Support/Reveal/RevealServer/RevealServer.xcframework/ios-arm64_x86_64-simulator/RevealServer.framework/RevealServer", 0x2)
### Reveal LLDB commands support - DO NOT MODIFY
command script import /Users/gonzalorehu/Library/Application\ Support/Reveal/RevealLLDBCommands/reveallldb
###
# MARK: Jailbreak config
# I haven't tested this yet.
# I've created this "/var/mobile/debug_libs" directory in my jailbroken iphone.
# I'm storing debugging frameworks such as FLEX and Lookin here
command alias flex_iphone expr -l objc++ -- (void *)dlopen("/var/mobile/debug_libs/FLEX.framework/FLEX", 0x2)
command alias look_iphone expr -l objc++ -- (void *)dlopen("/var/mobile/debug_libs/LookinServer.framework/LookinServer", 0x2)