From 70e271959b5d960db1d3e8b341ccfcea4803c83e Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sun, 22 Sep 2024 14:54:26 +0800 Subject: [PATCH] lldb: fix runlldb.sh to load llgo plugin --- _lldb/runlldb.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_lldb/runlldb.sh b/_lldb/runlldb.sh index 39da6860..0e6e57df 100755 --- a/_lldb/runlldb.sh +++ b/_lldb/runlldb.sh @@ -8,5 +8,8 @@ source "$(dirname "$0")/common.sh" executable="$1" -# Run LLDB -"$LLDB_PATH" "$executable" +# 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"