Skip to content

Commit

Permalink
rust-gdb: work around the re-used -d argument in cgdb
Browse files Browse the repository at this point in the history
Use --directory= instead of -d, because cgdb reuses the short option.
  • Loading branch information
atopia committed May 22, 2018
1 parent cb20f68 commit f6df174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/rust-gdb
Expand Up @@ -21,6 +21,6 @@ GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustlib/etc"
# different/specific command (defaults to `gdb`).
RUST_GDB="${RUST_GDB:-gdb}"
PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" ${RUST_GDB} \
-d "$GDB_PYTHON_MODULE_DIRECTORY" \
--directory="$GDB_PYTHON_MODULE_DIRECTORY" \
-iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
"$@"

0 comments on commit f6df174

Please sign in to comment.