openbsd-ports/lang/rust/patches/patch-src_etc_rust-gdb
2020-06-09 06:39:30 +00:00

15 lines
681 B
Plaintext

$OpenBSD: patch-src_etc_rust-gdb,v 1.9 2020/06/09 06:39:30 semarie Exp $
use egdb (gdb from ports)
Index: src/etc/rust-gdb
--- src/etc/rust-gdb.orig
+++ src/etc/rust-gdb
@@ -17,7 +17,7 @@ GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustli
# Run GDB with the additional arguments that load the pretty printers
# Set the environment variable `RUST_GDB` to overwrite the call to a
# different/specific command (defaults to `gdb`).
-RUST_GDB="${RUST_GDB:-gdb}"
+RUST_GDB="${RUST_GDB:-egdb}"
PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \
--directory="$GDB_PYTHON_MODULE_DIRECTORY" \
-iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \