-
Notifications
You must be signed in to change notification settings - Fork 520
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
Debugging support in rustc #316
Conversation
I would add this as a subsection under the |
Now that I look at this, I wonder if it is ok as a subsection, given this is pretty long. |
I mean, still in it's own file as it currently is, just indexed under the debugging chapter. |
src/debugging-support-in-rustc.md
Outdated
#### Parser extensions | ||
|
||
Expression parser has a couple of extensions [TODO: Where are the extensions???] in it | ||
to facilitate features that you cannot do with Rust [TODO: CHECK: Find out what cannot be done?]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what cannot be done but this was mentioned by @tromey in the video. Perhaps he did explain later which I have noted in this document below, but I still am not sure if there is something more to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gdb's Rust extensions and limitations are documented in the gdb manual: https://sourceware.org/gdb/onlinedocs/gdb/Rust.html -- however, this neglects to mention that gdb convenience variables and registers follow the gdb $
convention, and that the Rust parser implements the gdb @
extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
however, this neglects to mention that gdb convenience variables and registers follow the gdb $ convention, and that the Rust parser implements the gdb @ extension.
@tromey do you think we should mention this part in the GDB-Rust document rather than this document so there is no duplication etc.?
src/debugging-support-in-rustc.md
Outdated
#### Name mangling changes | ||
|
||
* New demangler in `libiberty` (gcc source tree). | ||
* New demangler in LLVM or LLDB [TODO: CHECK: where is the demangler these days] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tromey could you please help me find where this demangler is at the moment? Or do we even have one? Checking because you say @michaelwoerister (I think) says that we should change Rust's name mangling.
Very amateur question - What's the best way to turn off linkchecker while working with a document? It takes forever to reload the page with the changes locally. |
@amanjeev The easiest way is just to change this to |
@amanjeev Thanks :) I will try to get to this soon. It looks like there have already been some comments, so I will try to make it a quick review |
Also, you have a merge conflict |
@mark-i-m Sorry, I will try and resolve the conflicts and push again. I used to think I was good at this. lol |
Not sure what's going on here. I see this build error but the pages exist. Do we need to increase the timeout maybe? Please help.
|
Yes, I’ve been seeing a lot of those timeouts recently. I think it is travis rate limiting us. It seems to be a different link every time. @pietroalbini any ideas? |
Seems I cannot re-run Travis builds without a commit? What are some of the other options to do that? |
I can rerun travis builds, but I tried that on a previous PR and it doesn't solve the problem (there will be a timeout on another link). I would like to hear if the infra team has any ideas here. |
Those are spurious network issues, we also see them on rustc when talking with AWS (like S3 or a CloudFront-backed domain like doc.rust-lang.org). They're aware of it as far as I can tell, but there doesn't seem to be that much progress. |
So meanwhile someone will be sitting at their desk clicking the "Re-run build" button. I do not envy you @mark-i-m 😄 |
@mark-i-m it passed! 😅 |
@rustbot claim |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amanjeev Thanks for your patience and your hard work. Overall LGTM. I left a bunch of small nits. After those are fixed, r=me :)
Also watch out because github likes to "Helpfully" collapse comments... |
@mark-i-m I am unaware of what |
@amanjeev It looks good to me! Let's ship it
In the rust-lang/rust repo, where bors controls the PR queue, reviewers leave comments like |
@amanjeev I tried to rebase and resolve the conflicts, but somewhere along the way there were a few very weird merge conflicts, so I just squashed all commits and rebased on the current master. When travis turns green, I will merge. |
@mark-i-m thank you so much! I am so happy this is merged! 🎉 |
This is still work-in-progress but I wanted to open a PR for an early review to see if I am on the right path (also suggested by @spastorino).
This document is built on top of https://www.youtube.com/watch?v=elBxMRSNYr4 by @tromey.
For the sake of simplicity, I have added this document at the top level. Please advise if this should be under a directory or group of docs.
This issue has been assigned to @amanjeev via this comment.