mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-28 18:08:48 +02:00
26 lines
936 B
Diff
26 lines
936 B
Diff
diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb
|
|
index 9abed30..c5326ae 100755
|
|
--- a/src/etc/rust-gdb
|
|
+++ b/src/etc/rust-gdb
|
|
@@ -12,7 +12,7 @@ fi
|
|
|
|
# Find out where the pretty printer Python module is
|
|
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
|
|
-GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
|
|
+GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/share/rust/etc"
|
|
# Get the commit hash for path remapping
|
|
RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \([a-zA-Z0-9_]*\)/\1/p')"
|
|
|
|
diff --git a/src/etc/rust-lldb b/src/etc/rust-lldb
|
|
index bce72f1..ecac488 100755
|
|
--- a/src/etc/rust-lldb
|
|
+++ b/src/etc/rust-lldb
|
|
@@ -8,7 +8,7 @@ host=$(rustc -vV | sed -n -e 's/^host: //p')
|
|
|
|
# Find out where to look for the pretty printer Python module
|
|
RUSTC_SYSROOT=$(rustc --print sysroot)
|
|
-RUST_LLDB="$RUSTC_SYSROOT/lib/rustlib/$host/bin/lldb"
|
|
+RUST_LLDB="$RUSTC_SYSROOT/share/rust/etc"
|
|
|
|
lldb=lldb
|
|
if [ -f "$RUST_LLDB" ]; then
|