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 on OS X #118

Open
ghost opened this issue Jan 4, 2016 · 4 comments
Open

rust-gdb on OS X #118

ghost opened this issue Jan 4, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2016

On OS X, I noticed that the current implementation of multirust does not seem to copy the rust-gdb script (https://github.com/rust-lang/rust/blob/master/src/etc/rust-gdb) into the ~/.multirust/toolchains/stable/bin/ directory. For other toolchains, like nightly, etc. I have not tested, but I assume the same behavior. Only the rust-lldb pretty-printer script seems to be copied.

I personally installed gdb on my MacBook because I like it more than rust-lldb, so I would appreciate it if the rust-gdb script could be copied into ~/.multirust/toolchains/stable/bin/ as well.

After all, the helper script rust-gdb which is in my PATH (i.e., /usr/local/bin/rust-gdb) actually gets installed, but fails on the last line

exec "$sysroot/bin/$rust_cmd" $extra_flags "$@"

because - as stated above - cannot find ~/.multirust/toolchains/stable/bin/rust-gdb.

Edit: Maybe that is actually a flaw of the actual rust installation process, but so far I haven't used rust, only multirust.

@brson
Copy link
Owner

brson commented Jan 7, 2016

Hey @davidbecher. Thanks for your report. As I think you've guessed, installing rust-gdb is a function of the Rust project itself.

cc rust-lang/rust#30706

@brson brson closed this as completed Jan 7, 2016
@brson brson reopened this Jan 7, 2016
@brson
Copy link
Owner

brson commented Jan 7, 2016

Oh, actually, multirust does care about this. It creates the proxy bin here, and seemingly only for rust-llvm on darwin.

@brson
Copy link
Owner

brson commented Jan 7, 2016

Hm, according to this line, rust-gdb should be installed unconditionally.

@brson
Copy link
Owner

brson commented Jan 7, 2016

Oh, but you are not seeing the actual rust-gdb script in the toolchain directory where it should be installed. Yeah, that should be handled by Rust itself.

So I think for multirust, the thing to do is probably to create the rust-lldb proxy unconditionally, though that has no impact on your case.

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

1 participant