Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-gdb uses option which /usr/bin/gdb doesn't understand #4

Closed
ltratt opened this issue Mar 25, 2017 · 2 comments
Closed

rust-gdb uses option which /usr/bin/gdb doesn't understand #4

ltratt opened this issue Mar 25, 2017 · 2 comments

Comments

@ltratt
Copy link

ltratt commented Mar 25, 2017

If I build nightly and try to run rust-gdb I get:

$ rust-gdb
gdb: unrecognized option `-iex'
Use `gdb --help' for a complete list of options.

If I look at the rust-gdb installed in build-rust/install_dir/nightly/bin I see:

PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" gdb \
  -d "$GDB_PYTHON_MODULE_DIRECTORY" \
  -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
  "$@"

Changing gdb to egdb solves the problem. [There may be a way that doesn't rely on egcc, but this worked for me!]

@semarie
Copy link
Owner

semarie commented Mar 26, 2017

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.

@semarie semarie closed this as completed Mar 26, 2017
@nbigaouette-eai
Copy link

See rust-lang/rust#41372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants