]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #99194 - simlay:simlay/update-rust-gdbgui-gdb-args-to-gdb-cmd, r...
authorMatthias Krüger <matthias.krueger@famsik.de>
Sat, 8 Oct 2022 21:32:01 +0000 (23:32 +0200)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 21:32:01 +0000 (23:32 +0200)
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.

src/etc/rust-gdbgui

index 9744913b686501d83f864bd1c5b2d8674f9cd913..590e488e643aa8612901b9b576975cd8bf1c6b1b 100755 (executable)
@@ -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}" \
   "${@}"