Closed ltratt closed 7 years ago
rustc requires a gdb version more recent than what we have in OpenBSD base.
using the gdb from ports is the right thing to do (lang/rust
port patches the wrapper).
but the purpose of this tool is just to help building without rustup, not to propose a fork of Rust based on local patches.
if you want a suitable script working out-of-box, please open an issue on rust repository. but I think the right way would be to just detect the version and abort if not match minimal requirement.
If I build nightly and try to run rust-gdb I get:
If I look at the
rust-gdb
installed inbuild-rust/install_dir/nightly/bin
I see:Changing
gdb
toegdb
solves the problem. [There may be a way that doesn't rely on egcc, but this worked for me!]