File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
RUSTC_SYSROOT=" $( " $RUSTC " --print=sysroot) "
15
15
GDB_PYTHON_MODULE_DIRECTORY=" $RUSTC_SYSROOT /lib/rustlib/etc"
16
16
# 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' ) "
18
18
19
19
# Run GDB with the additional arguments that load the pretty printers
20
20
# 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} \
25
25
-iex " add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY " \
26
26
-iex " set substitute-path /rustc/$RUSTC_COMMIT_HASH $RUSTC_SYSROOT /lib/rustlib/src/rust" \
27
27
" $@ "
28
-
28
+
Original file line number Diff line number Diff line change 43
43
RUSTC_SYSROOT=" $( " $RUSTC " --print=sysroot) "
44
44
GDB_PYTHON_MODULE_DIRECTORY=" $RUSTC_SYSROOT /lib/rustlib/etc"
45
45
# 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' ) "
47
47
48
48
# Set the environment variable `RUST_GDB` to overwrite the call to a
49
49
# different/specific command (defaults to `gdb`).
You can’t perform that action at this time.
0 commit comments