From 0efb2f2713375dbaf9134fc192aad3b116d8ae43 Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Tue, 1 Dec 2020 19:57:48 +0000 Subject: [PATCH] Hardcode LLDB python module directory Forwarded: not-needed Debian package installs python modules into a fixed directory, so just hardcode path in wrapper script. Gbp-Pq: Name d-rust-lldb-paths --- src/etc/rust-lldb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/rust-lldb b/src/etc/rust-lldb index bce72f1bad..1f36350222 100755 --- a/src/etc/rust-lldb +++ b/src/etc/rust-lldb @@ -10,7 +10,7 @@ host=$(rustc -vV | sed -n -e 's/^host: //p') RUSTC_SYSROOT=$(rustc --print sysroot) RUST_LLDB="$RUSTC_SYSROOT/lib/rustlib/$host/bin/lldb" -lldb=lldb +lldb=lldb-11 if [ -f "$RUST_LLDB" ]; then lldb="$RUST_LLDB" else @@ -30,8 +30,8 @@ EOF fi fi -script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_lookup.py\"" -commands_file="$RUSTC_SYSROOT/lib/rustlib/etc/lldb_commands" +script_import="command script import \"/usr/share/rust-lldb/lldb_lookup.py\"" +commands_file="/usr/share/rust-lldb/lldb_commands" # Call LLDB with the commands added to the argument list exec "$lldb" --one-line-before-file "$script_import" --source-before-file "$commands_file" "$@" -- 2.30.2