-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Some debuginfo-gdb tests failing #40557
Comments
cc #40184 which looks similar-ish (I'm 99% sure I haven't changed my GDB install since these tests passed for me though). |
@nrc: Could you post a bit more of the logs? I'm especially interested in the gdb version conpiletest detected and if it thinks that gdb has native rust support (frome the line not found error above, it probaly thinks it does). |
Sure:
|
Same error with GDB version 7012001 and native rust support, on Arch Linux. |
This is probably a duplicate of #39838 with more discussion in #40351, summary: |
For anyone who wants to work around it, this did the trick for me: touch build/x86_64-unknown-linux-gnu/test/debuginfo/{limited-debuginfo,simple-struct,simple-tuple}.rs-H-x86_64-unknown-linux-gnu-T-x86_64-unknown-linux-gnu-S-stage1-x86_64-unknown-linux-gnu.stamp You'll have to adjust for build triple and stage number, of course. |
With my Debian GDB 7.12, On the other hand we have an option of forcing newer GDBs to use C-like output format. What do you folks think? CC: @amboar |
Confirmed this bug exists on 1.17.0 with Debian GDB 7.12-6 and that @nodakai's patch works, thanks! diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 1ec0838d4..51ab38b1a 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -645,6 +645,9 @@ actual:\n\
script_str.push_str(&format!("file {}\n",
exe_file.to_str().unwrap()
.replace(r"\", r"\\")));
+ if self.config.gdb_native_rust {
+ script_str.push_str("set language rust\n");
+ }
// Add line breakpoints
for line in &breakpoint_lines { |
Huh, has anyone opened a PR yet? I (incorrectly) assumed we did all the detection we reasonably could and that it wasn't enough. |
…ister compiletest: force GDB to print values in the Rust format. Based on @nodakai's rust-lang#40557 (comment) and @infinity0's rust-lang#40557 (comment). Fixes rust-lang#40557.
…ister compiletest: force GDB to print values in the Rust format. Based on @nodakai's rust-lang#40557 (comment) and @infinity0's rust-lang#40557 (comment). Fixes rust-lang#40557.
…ister compiletest: force GDB to print values in the Rust format. Based on @nodakai's rust-lang#40557 (comment) and @infinity0's rust-lang#40557 (comment). Fixes rust-lang#40557.
On Linux, Ubuntu 16.10, GDB v7.11.90. The following tests fail:
Seems to be an issue with output formatting/pretty printing, e.g.,
This appears to be a regression - the same machine was passing tests last week (or maybe the week before).
cc @michaelwoerister
The text was updated successfully, but these errors were encountered: