diff options
| author | Alan Somers <asomers@gmail.com> | 2023-04-14 14:47:05 -0600 |
|---|---|---|
| committer | Alan Somers <asomers@gmail.com> | 2023-04-14 18:06:26 -0600 |
| commit | 2f45d197f3d6706e4bfd550a9e04ca1383d79a9b (patch) | |
| tree | 4a702b7d4dbf3fd01b4086f7e8195d7bb38578d5 /src/etc/rust-gdbgui | |
| parent | 276fa294809e914b1d04192392d256814aa5ce1a (diff) | |
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>
Diffstat (limited to 'src/etc/rust-gdbgui')
| -rwxr-xr-x | src/etc/rust-gdbgui | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rust-gdbgui b/src/etc/rust-gdbgui index e7bafcc99b8..913269316bd 100755 --- a/src/etc/rust-gdbgui +++ b/src/etc/rust-gdbgui @@ -43,7 +43,7 @@ fi RUSTC_SYSROOT="$("$RUSTC" --print=sysroot)" GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc" # 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 # different/specific command (defaults to `gdb`). |
