2020-06-09 06:39:30 +00:00
|
|
|
$OpenBSD: patch-src_etc_rust-gdb,v 1.9 2020/06/09 06:39:30 semarie Exp $
|
2018-12-16 09:19:57 +00:00
|
|
|
use egdb (gdb from ports)
|
2017-06-17 02:06:53 +00:00
|
|
|
Index: src/etc/rust-gdb
|
|
|
|
--- src/etc/rust-gdb.orig
|
|
|
|
+++ src/etc/rust-gdb
|
2020-06-09 06:39:30 +00:00
|
|
|
@@ -17,7 +17,7 @@ GDB_PYTHON_MODULE_DIRECTORY="$RUSTC_SYSROOT/lib/rustli
|
2016-01-13 07:39:07 +00:00
|
|
|
# Run GDB with the additional arguments that load the pretty printers
|
2017-06-17 02:06:53 +00:00
|
|
|
# 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}"
|
2018-11-01 13:50:30 +00:00
|
|
|
PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" exec ${RUST_GDB} \
|
2018-08-06 19:07:50 +00:00
|
|
|
--directory="$GDB_PYTHON_MODULE_DIRECTORY" \
|
2016-01-13 07:39:07 +00:00
|
|
|
-iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
|