Skip to content

Commit 383d169

Browse files
committed
Move debugger scripts to /usr/share/rust
1 parent b2f9e68 commit 383d169

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/bootstrap/dist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ impl Step for DebuggerScripts {
510510
fn run(self, builder: &Builder<'_>) {
511511
let host = self.host;
512512
let sysroot = self.sysroot;
513-
let dst = sysroot.join("lib/rustlib/etc");
513+
let dst = sysroot.join("share/rust");
514514
t!(fs::create_dir_all(&dst));
515515
let cp_debugger_script = |file: &str| {
516516
builder.install(&builder.src.join("src/etc/").join(file), &dst, 0o644);

src/etc/rust-gdb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fi
1212

1313
# Find out where the pretty printer Python module is
1414
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
15-
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
15+
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/share/rust"
1616

1717
# Run GDB with the additional arguments that load the pretty printers
1818
# Set the environment variable `RUST_GDB` to overwrite the call to a

src/etc/rust-gdbgui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141

4242
# Find out where the pretty printer Python module is
4343
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
44-
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
44+
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/share/rust"
4545

4646
# Set the environment variable `RUST_GDB` to overwrite the call to a
4747
# different/specific command (defaults to `gdb`).

src/etc/rust-lldb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ EOF
3030
fi
3131
fi
3232

33-
script_import="command script import \"$RUSTC_SYSROOT/lib/rustlib/etc/lldb_lookup.py\""
34-
commands_file="$RUSTC_SYSROOT/lib/rustlib/etc/lldb_commands"
33+
script_import="command script import \"$RUSTC_SYSROOT/share/rust/lldb_lookup.py\""
34+
commands_file="$RUSTC_SYSROOT/share/rust/lldb_commands"
3535

3636
# Call LLDB with the commands added to the argument list
3737
exec "$lldb" --one-line-before-file "$script_import" --source-before-file "$commands_file" "$@"

0 commit comments

Comments
 (0)