任何人都可以共享一个示例.lldbinit文件吗?

问题描述:

有没有人有他们可以分享的.lldbinit文件?看到一些定义的命令真的很有用,只是为了理解语法。任何人都可以共享一个示例.lldbinit文件吗?

+0

转到github.com并搜索lldbinit找到文件,欢呼... – user1135541

退房在LLDB库中的例子:

另一个例子可以在GitHub https://github.com/search?q=lldbinit找到。其中少数几个从https://github.com/bsmt/lldbinit/blob/master/lldbinit

# wish lldb supported colors :/ 
settings set prompt [lldb]$ 

# breakpoint shortcuts 
# break on function/method/selector: b -n name 
# break on C/C++ method: b -M method 
# break on selector: b -S selector:here: 
# break on address: b -a 0xfeedface 
command alias b breakpoint set 
command alias bd breakpoint disable 
command alias be breakpoint enable 
command alias bdel breakpoint delete 
command alias bcommand breakpoint command add 
command alias commands breakpoint command list 

# jump aliases 
# jump 0xfeedface 
command alias jump register write pc 
command alias jmp register write pc 
command alias j register write pc 

# fix p/s 
# p/s rsi 
command alias p/s register read 

# fscript (cbf to fix fscript anywhere) 
command alias f_init p (char)[[NSBundle bundleWithPath:@"/Library/Frameworks/FScript.framework"] load] 
command alias f_start p (void)[FScriptMenuItem insertInMainMenu] 

command alias return thread return