Skip to content

Commit 61b7ebe

Browse files
committed
Rename environment variable GDB_CMD to RUST_GDB to prevent ambiguity
1 parent 82ed783 commit 61b7ebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/etc/rust-gdb

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ RUSTC_SYSROOT=`rustc --print=sysroot`
1717
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
1818

1919
# Run GDB with the additional arguments that load the pretty printers
20-
# Set the environment variable `GDB_CMD` to overwrite the call to a
20+
# Set the environment variable `RUST_GDB` to overwrite the call to a
2121
# different/specific command (defaults to `gdb`).
22-
GDB_CMD="${GDB_CMD:-gdb}"
23-
PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" ${GDB_CMD} \
22+
RUST_GDB="${RUST_GDB:-gdb}"
23+
PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" ${RUST_GDB} \
2424
-d "$GDB_PYTHON_MODULE_DIRECTORY" \
2525
-iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
2626
"$@"

0 commit comments

Comments
 (0)