Skip to content

Commit

Permalink
Rename environment variable GDB_CMD to RUST_GDB to prevent ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
nbigaouette committed Apr 20, 2017
1 parent 82ed783 commit 61b7ebe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/etc/rust-gdb
Expand Up @@ -17,10 +17,10 @@ RUSTC_SYSROOT=`rustc --print=sysroot`
GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"

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

0 comments on commit 61b7ebe

Please sign in to comment.