-
Notifications
You must be signed in to change notification settings - Fork 2
/
lldbinit
24 lines (16 loc) · 1.04 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
# These are nice overviews of LLDB syntax:
# https://developer.apple.com/library/archive/documentation/IDEs/Conceptual/gdb_to_lldb_transition_guide/document/lldb-basics.html
# https://developer.apple.com/library/archive/documentation/IDEs/Conceptual/gdb_to_lldb_transition_guide/document/lldb-command-examples.html
command script import /Users/twilco/projects/web/OpenSource/Tools/lldb/lldb_webkit.py
command alias wkd process attach -n com.apple.WebKit.WebContent.Development -w
# Set a breakpoint.
# Example usage setting an unconditional breakpoint: bps CSSPropertyParser.cpp 84
# Example usage setting an conditional breakpoint: bps CSSPropertyParser.cpp 84 -c 'valueID == CSSValueInherit'
command alias bps breakpoint set --file %1 --line %2
command alias bpd breakpoint delete --force
command alias bry breakpoint set -y %1
command alias fi finish
# Write all breakpoints to file on every stop so they can reloaded later.
target stop-hook add breakpoint write lldb-breakpoints
# Read all written breakpoints on startup.
breakpoint read lldb-breakpoints