2024-09-21 00:08:44 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2024-09-21 10:03:49 +08:00
|
|
|
# Source common functions and variables
|
2024-09-21 21:09:16 +08:00
|
|
|
# shellcheck source=./_lldb/common.sh
|
2024-09-21 10:03:49 +08:00
|
|
|
source "$(dirname "$0")/common.sh"
|
|
|
|
|
|
2024-09-21 21:09:16 +08:00
|
|
|
executable="$1"
|
2024-09-21 10:03:49 +08:00
|
|
|
|
2024-09-22 14:54:26 +08:00
|
|
|
# Get the directory of the current script
|
|
|
|
|
script_dir="$(dirname "$0")"
|
|
|
|
|
|
|
|
|
|
# Run LLDB with the LLGO plugin
|
|
|
|
|
"$LLDB_PATH" -O "command script import ${script_dir}/llgo_plugin.py" "$executable"
|