-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Two debuginfo tests fail with gdb 11.2 #94458
Comments
I would also like to fix this as I found out about this while trying to go through https://rustc-dev-guide.rust-lang.org/ hoping to find a possibility for my first contribution. My commit nertpinx@def7bb9 works for me, but is definitely not a great fix. I went on Zulip to ask about how to proceed and after some redirection I found out that someone asked for an issue to be filed, so hence this issue. I can't think of much else about fixing this than the above commit with added ignore for gdb older than 11.2. What's the best way to continue? Create a draft PR? Or should I rather leave this alone so that I do not interfere since it is part of another change? |
Getting this too.
|
How about just changing that to |
A more complicated but future looking fix could be adding
This at least seems to avoid color styling output. |
it's also possible to add
but I was not sure where to check what does it imply and where to find the definitions for these. I think that it is useful to check that gdb can actually display the character. Thanks @ratmice to pointing to the implementation of those. I'll try to look at that at some point, although it will probably take me quite some time O:-) so I do not want to promise anything. |
FYI, just |
…imulacrum Fix debuginfo tests with GDB 11.2 GDB 11.2 added support for DW_ATE_UTF, which caused some test failures. This fixes these tests by changing the format that is used, and adds a new test to verify that characters are emitted as something that GDB can print in a char-like way. Fixes rust-lang#94458
…ulacrum Fix debuginfo tests with GDB 11.2 GDB 11.2 added support for DW_ATE_UTF, which caused some test failures. This fixes these tests by changing the format that is used, and adds a new test to verify that characters are emitted as something that GDB can print in a char-like way. Fixes rust-lang#94458
Building the compiler and running the tests on system with GDB 11.2 fails on current master (commit 97cde9f) with the following:
... a little bit down we see ...
and the same for
src/test/debuginfo/borrowed-basic.rs
.The reason for that is pretty simple. GDB 11.2 added support for printing characters for Rust: https://sourceware.org/bugzilla/show_bug.cgi?id=28637 which is effective since the char type changed in debuginfo in #89887
The text was updated successfully, but these errors were encountered: