Package: rustc / 1.46.0+dfsg1-1

d-rust-lldb-paths Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Hardcode LLDB python module directory
 Debian package installs python modules into a fixed directory, so
 just hardcode path in wrapper script.
Author: Angus Lees <gus@debian.org>
Forwarded: not-needed

--- a/src/etc/rust-lldb
+++ b/src/etc/rust-lldb
@@ -10,7 +10,7 @@
 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
--- a/src/etc/lldb_commands
+++ b/src/etc/lldb_commands
@@ -1,4 +1,4 @@
-command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_lookup.py\"
+command script import \"/usr/share/rust-lldb/lldb_lookup.py\"
 type synthetic add -l lldb_lookup.synthetic_lookup -x \".*\" --category Rust
 type summary add -F lldb_lookup.summary_lookup  -e -x -h \"^(alloc::([a-z_]+::)+)String$\" --category Rust
 type summary add -F lldb_lookup.summary_lookup  -e -x -h \"^&str$\" --category Rust