-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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/rust-lldb: Trim output of vec/slice/array #30250
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @nikomatsakis (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
821a72b
to
0899f9d
Compare
Looks good to me. Let's see if it passes the LLDB tests. |
@bors r+ |
📌 Commit 0899f9d has been approved by |
⌛ Testing commit 0899f9d with merge a6e0bd7... |
💔 Test failed - auto-mac-32-opt |
The scoping bugs in the lldb scripts should now be fixed. |
c02c10e
to
95710a1
Compare
I'm not sure if there's something wrong with my dev environment, because I can't get the tests to fail locally when reverting the actual fix. |
f43fc2b
to
e525b48
Compare
The test case should not contain the |
f7dc019
to
a988191
Compare
@michaelwoerister I've removed that attr, please take a look again. It seems that the testcase passes both with and without the fix, but I'm not sure why. |
My current suspicion is that |
f7dc019
to
e234209
Compare
Only |
I see, I've updated the ... to .. though |
@untitaker OK, so I've looked into LLDB and since we are producing actual strings there, it would be a greater undertaking to do the same as in GDB (and it's not clear that we actually want to do that there). My proposal would be:
|
700d837
to
1293907
Compare
I'm unsure on how to adapt the tests, and can't get them to fail. I'm thinking about removing them. |
2eadf9f
to
fd4c064
Compare
You can take the adapted tests from here: |
2d63ef7
to
bd6a02d
Compare
Updated with your test. The first |
The relevant tests unexpectedly pass on Travis, but I get stylecheck errors. |
You need to add the line |
But why do the tests pass without the fix? |
Where do you see them passing? In the Travis log I only see 'make tidy' running (and failing). |
433afcd
to
8c328c2
Compare
Sorry, yes. Updated PR. |
@bors r+ |
📌 Commit be44f1e has been approved by |
⌛ Testing commit be44f1e with merge c50d71a... |
💔 Test failed - auto-win-gnu-64-opt |
Almost passing. Pretty printers are not enabled on Windows.
Those are the same as in the |
I'd like to wait for #30249 such that I can run the gdb/lldb tests in Travis. |
Looks like #30249 is stalling, so I'm gonna close this one as well (not a lot of activity), but feel free to resubmit! |
I'm running into this issue right now where LLDB is trying to print a 591KiB byte slice everytime I step through my nom parser. Is there any way that I can revive this really old PR? Looking for guidance on what caused this to go unmerged in the past. |
I think the gdb parts are probably not needed any more, at least not with a new-enough gdb (so that the struct printer is not used). You can control the number of printed elements in gdb with For lldb, I think the formatters need some updates to provide synthetic children. (This came up in a different bug as well; I'll file a bug for this specifically.) Then maybe the |
Fix #29467
I have tested this with rust-gdb, but rust-lldb is completely untested.
It prints "cannot access memory" for the example in #29467 instead of hanging
up.