Projects
Factory:RISC-V:Base
rust166
_service:extract_file:rustc-1.61.0-rust-gdb-sub...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:rustc-1.61.0-rust-gdb-substitute-path.patch of Package rust166
From 2f2776871406894b3063c334e242c6705a4a4cad Mon Sep 17 00:00:00 2001 From: jchzhou <jchzhou@outlook.com> Date: Tue, 19 Jul 2022 22:22:44 +0800 Subject: [PATCH] rustc-1.61.0-rust-gdb-substitute-path --- src/etc/rust-gdb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/etc/rust-gdb b/src/etc/rust-gdb index b950cea79..68c6be006 100755 --- a/src/etc/rust-gdb +++ b/src/etc/rust-gdb @@ -14,6 +14,9 @@ fi RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)" GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc" +RUST_STD_BUILD="@BUILDDIR@/library/" +RUST_STD_SRC="$RUSTC_SYSROOT/lib/rustlib/src/rust/library/" + # 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`). @@ -21,4 +24,5 @@ RUST_GDB="${RUST_GDB:-gdb}" PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \ --directory="$GDB_PYTHON_MODULE_DIRECTORY" \ -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \ + -iex "set substitute-path $RUST_STD_BUILD $RUST_STD_SRC" \ "$@" -- 2.37.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2