about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-08 23:32:01 +0200
committerGitHub <noreply@github.com>2022-10-08 23:32:01 +0200
commit3c2356767c98d17a218fe2a98ca47b1ad162fe7c (patch)
treea723a495043c76a28127200605c0f9d2bbcc72ee
parent8796e7a9cfd4c5c4f1de15ec1c53994ddf288665 (diff)
parentf1ff74ff967cff9634fff73a88cd9d4b93c2ba3f (diff)
downloadrust-3c2356767c98d17a218fe2a98ca47b1ad162fe7c.tar.gz
rust-3c2356767c98d17a218fe2a98ca47b1ad162fe7c.zip
Rollup merge of #99194 - simlay:simlay/update-rust-gdbgui-gdb-args-to-gdb-cmd, r=Mark-Simulacrum
Fix gdb-cmd for rust-gdbgui

With https://github.com/cs01/gdbgui/pull/198, the way that gdbgui arguments were specified changed. I've tested this with program generated from `cargo new --bin` and it worked as gdbgui should.

Closes #76383.
-rwxr-xr-xsrc/etc/rust-gdbgui3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/etc/rust-gdbgui b/src/etc/rust-gdbgui
index 9744913b686..590e488e643 100755
--- a/src/etc/rust-gdbgui
+++ b/src/etc/rust-gdbgui
@@ -58,7 +58,6 @@ GDB_ARGS="--directory=\"$GDB_PYTHON_MODULE_DIRECTORY\" -iex \"add-auto-load-safe
 # Finally we execute gdbgui.
 PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" \
   exec ${RUST_GDBGUI} \
-  --gdb ${RUST_GDB} \
-  --gdb-args "${GDB_ARGS}" \
+  --gdb-cmd "${RUST_GDB} ${GDB_ARGS}" \
   "${@}"