7

共有できる.lldbinitファイルを持っている人はいますか?構文を理解するためだけに、いくつかのコマンドが定義されているのを確認すると非常に便利です。

4

2 に答える 2

4

別の例は、GitHub https://github.com/search?q=lldbinitにあります。https://github.com/bsmt/lldbinit/blob/master/lldbinitの数少ないものの 1 つ

# 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
于 2014-07-31T08:04:00.430 に答える
2

lldb リポジトリの例を確認してください。

于 2012-02-20T22:43:46.027 に答える