From: Angus Lees Date: Thu, 6 Aug 2020 20:11:39 +0000 (+0100) Subject: Hardcode LLDB python module directory X-Git-Tag: archive/raspbian/1.45.0+dfsg1-2+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2bd3927a37de28797a2be205620a44840e39d8e9;p=rustc.git 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 --- diff --git a/src/etc/rust-lldb b/src/etc/rust-lldb index 7b9b40e6b4..1a211e0479 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-10 if [ -f "$RUST_LLDB" ]; then lldb="$RUST_LLDB" else @@ -31,7 +31,7 @@ EOF fi # Prepare commands that will be loaded before any file on the command line has been loaded -script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_rust_formatters.py\"" +script_import="command script import \"$RUSTC_SYSROOT/share/rust-lldb/lldb_rust_formatters.py\"" category_definition="type summary add --no-value --python-function lldb_rust_formatters.print_val -x \".*\" --category Rust" category_enable="type category enable Rust"