Skip to content

Conversation

nbigaouette
Copy link
Contributor

@nbigaouette nbigaouette commented Jan 17, 2019

PR #53774 added rust-gdbui as wrapper to launch gdbui, similar to rust-gdb.

Unfortunately I've never seen the script in my local installation (from rustup, using rust 1.31.1). @tromey on the PR suggested it might be missing from the installation process.

This PR simply adds a line for rust-gdbui too.

@rust-highfive
Copy link
Contributor

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 17, 2019
// gdb debugger scripts
builder.install(&builder.src.join("src/etc/rust-gdb"), &sysroot.join("bin"),
0o755);
builder.install(&builder.src.join("src/etc/rust-gdbui"), &sysroot.join("bin"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here: it should be src/etc/rust-gdbgui, with a g

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed in bf9c0fb.

@PhilipDaniels
Copy link
Contributor

PhilipDaniels commented Jan 17, 2019

@nbigaouette Erm, I wrote the original script, but given that several months has passed, have you tested that it still works? I only ask since I tend to use VSCode now that I have got debugging working in there. Though if this does work I may go back to using gdbgui!

@nikomatsakis
Copy link
Contributor

nikomatsakis commented Jan 18, 2019

I didn't even know this script existed, and I don't really know how this installation stuff works. Moving this review to @Mark-Simulacrum, maybe they know who to reassign to, or whether this subsystem still works or what. =)

r? @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Collaborator

bors commented Jan 18, 2019

📌 Commit bf9c0fb has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 18, 2019
@nbigaouette
Copy link
Contributor Author

nbigaouette commented Jan 19, 2019

What I did to try it out is create a symbolic link:
ln -s $HOME/rust.git/src/etc/rust-gdbui $HOME/.rustup/toolchains/stable-x86_64-apple-darwin/bin/rust-gdb

It initially failed, but it was because I had RUST_GDB="cdgb --". Unsetting the variable made it work.

But I do have problem launching gdb on my (mac) machine. I'm hit by #40787 and if I try the workaround, gdb launches, but running the binary just hangs. So I unfortunately cannot test gdbgui more than launching it for now... Wish I could :(

@Centril
Copy link
Contributor

Centril commented Jan 21, 2019

@bors p=10

(preserves current ordering relative to other PRs)

@bors
Copy link
Collaborator

bors commented Jan 21, 2019

⌛ Testing commit bf9c0fb with merge b5f5a27...

bors added a commit that referenced this pull request Jan 21, 2019
…stall, r=Mark-Simulacrum

Install missing 'rust-gdbui''

PR #53774 added `rust-gdbui` as wrapper to launch [gdbui](https://gdbgui.com/), similar to `rust-gdb`.

Unfortunately I've never seen the script in my local installation (from rustup, using rust 1.31.1). @tromey on the PR [suggested it might be missing](#53774 (comment)) from the installation process.

This PR simply adds a line for `rust-gdbui` too.
@bors
Copy link
Collaborator

bors commented Jan 21, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Mark-Simulacrum
Pushing b5f5a27 to master...

@bors bors merged commit bf9c0fb into rust-lang:master Jan 21, 2019
@nbigaouette nbigaouette deleted the pr-53774-fix-missing-rust-gdbui-install branch January 21, 2019 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants