/[packages]/cauldron/rust/current/SOURCES/rustc-1.61.0-rust-gdb-substitute-path.patch
ViewVC logotype

Contents of /cauldron/rust/current/SOURCES/rustc-1.61.0-rust-gdb-substitute-path.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1861388 - (show annotations) (download)
Mon Jun 6 12:35:03 2022 UTC (22 months, 2 weeks ago) by akien
File size: 879 byte(s)
- Sync with Fedora: Mon May 23 2022 Josh Stone <jistone@redhat.com> - 1.61.0-2
  o Update to 1.61.0.
  o Add rust-toolset for ELN.
  o Add missing target_feature to the list of well known cfg names
1 --- rustc-1.61.0-src/src/etc/rust-gdb.orig 2022-05-17 18:29:36.000000000 -0700
2 +++ rustc-1.61.0-src/src/etc/rust-gdb 2022-05-18 11:18:13.732709661 -0700
3 @@ -14,6 +14,9 @@ fi
4 RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
5 GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
6
7 +RUST_STD_BUILD="@BUILDDIR@/library/"
8 +RUST_STD_SRC="$RUSTC_SYSROOT/lib/rustlib/src/rust/library/"
9 +
10 # Run GDB with the additional arguments that load the pretty printers
11 # Set the environment variable `RUST_GDB` to overwrite the call to a
12 # different/specific command (defaults to `gdb`).
13 @@ -21,4 +24,5 @@ RUST_GDB="${RUST_GDB:-gdb}"
14 PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \
15 --directory="$GDB_PYTHON_MODULE_DIRECTORY" \
16 -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
17 + -iex "set substitute-path $RUST_STD_BUILD $RUST_STD_SRC" \
18 "$@"

  ViewVC Help
Powered by ViewVC 1.1.30