This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1414RUSTC_SYSROOT=" $( " $RUSTC " --print=sysroot) "
1515GDB_PYTHON_MODULE_DIRECTORY=" $RUSTC_SYSROOT /lib/rustlib/etc"
1616# Get the commit hash for path remapping
17- RUSTC_COMMIT_HASH=" $( " $RUSTC " -vV | sed -n ' s/commit-hash: \(\w *\)/\1/p' ) "
17+ RUSTC_COMMIT_HASH=" $( " $RUSTC " -vV | sed -n ' s/commit-hash: \([a-zA-Z0-9_] *\)/\1/p' ) "
1818
1919# Run GDB with the additional arguments that load the pretty printers
2020# Set the environment variable `RUST_GDB` to overwrite the call to a
@@ -25,4 +25,4 @@ PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \
2525 -iex " add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY " \
2626 -iex " set substitute-path /rustc/$RUSTC_COMMIT_HASH $RUSTC_SYSROOT /lib/rustlib/src/rust" \
2727 " $@ "
28-
28+
Original file line number Diff line number Diff line change 4343RUSTC_SYSROOT=" $( " $RUSTC " --print=sysroot) "
4444GDB_PYTHON_MODULE_DIRECTORY=" $RUSTC_SYSROOT /lib/rustlib/etc"
4545# Get the commit hash for path remapping
46- RUSTC_COMMIT_HASH=" $( " $RUSTC " -vV | sed -n ' s/commit-hash: \(\w *\)/\1/p' ) "
46+ RUSTC_COMMIT_HASH=" $( " $RUSTC " -vV | sed -n ' s/commit-hash: \([a-zA-Z0-9_] *\)/\1/p' ) "
4747
4848# Set the environment variable `RUST_GDB` to overwrite the call to a
4949# different/specific command (defaults to `gdb`).
You can’t perform that action at this time.
0 commit comments