Fix rust-gdb and rust-gdbgui on FreeBSD
"\w" is a GNU-specific extension to sed. Avoid it. Fixes #110334 Signed-off-by: Alan Somers <asomers@gmail.com>
This commit is contained in:
parent
276fa29480
commit
2f45d197f3
2 changed files with 3 additions and 3 deletions
|
@ -14,7 +14,7 @@ fi
|
||||||
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
|
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
|
||||||
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
|
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
|
||||||
# Get the commit hash for path remapping
|
# Get the commit hash for path remapping
|
||||||
RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \(\w*\)/\1/p')"
|
RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \([a-zA-z0-9_]*\)/\1/p')"
|
||||||
|
|
||||||
# Run GDB with the additional arguments that load the pretty printers
|
# Run GDB with the additional arguments that load the pretty printers
|
||||||
# Set the environment variable `RUST_GDB` to overwrite the call to a
|
# Set the environment variable `RUST_GDB` to overwrite the call to a
|
||||||
|
|
|
@ -43,7 +43,7 @@ fi
|
||||||
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
|
RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)"
|
||||||
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
|
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
|
||||||
# Get the commit hash for path remapping
|
# Get the commit hash for path remapping
|
||||||
RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \(\w*\)/\1/p')"
|
RUSTC_COMMIT_HASH="$("$RUSTC" -vV | sed -n 's/commit-hash: \([a-zA-Z0-9_]*\)/\1/p')"
|
||||||
|
|
||||||
# Set the environment variable `RUST_GDB` to overwrite the call to a
|
# Set the environment variable `RUST_GDB` to overwrite the call to a
|
||||||
# different/specific command (defaults to `gdb`).
|
# different/specific command (defaults to `gdb`).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue