From 49cb2701841e6e3c7f46cd595acf9289a974d844 Mon Sep 17 00:00:00 2001 From: Rust Maintainers Date: Tue, 25 Jul 2017 22:19:47 +0100 Subject: [PATCH] d-rust-gdb-paths Gbp-Pq: Name d-rust-gdb-paths --- src/etc/rust-gdb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb index 52601cd96f..66ecbca798 100755 --- a/src/etc/rust-gdb +++ b/src/etc/rust-gdb @@ -13,14 +13,16 @@ set -e # Find out where the pretty printer Python module is -RUSTC_SYSROOT=`rustc --print=sysroot` -GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc" +#RUSTC_SYSROOT=`rustc --print=sysroot` +#GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc" +# We can just hardcode this on Debian, and remove the rustc dependency +GDB_PYTHON_MODULE_DIRECTORY="/usr/share/rust-gdb" # Run GDB with the additional arguments that load the pretty printers # Set the environment variable `RUST_GDB` to overwrite the call to a # different/specific command (defaults to `gdb`). RUST_GDB="${RUST_GDB:-gdb}" -PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" ${RUST_GDB} \ +PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \ -d "$GDB_PYTHON_MODULE_DIRECTORY" \ -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \ "$@" -- 2.30.2