summaryrefslogtreecommitdiff
path: root/aarch64/asmrun.sh
blob: ffcb4999ebf01026bcf17947eaba75916be04682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
D="$(dirname "$0")"
clang -o "$D/_asmrun_out" "$1" || exit 1
shift

BP_ARGS=()
for bp in "$@"; do
    BP_ARGS+=(-o "breakpoint set --name $bp")
done

lldb --no-lldbinit --batch \
    -o "target create $D/_asmrun_out" \
    "${BP_ARGS[@]}" \
    -o "process launch"