-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Fix debug representation of arrays of structs #1340
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Comments
Objs are no longer with us. |
This was a poorly worded issue. |
(And if that doesn't work, I bet debug representations of classes don't work either :-) |
This is blocked by Issue #5836 |
Triage visit: #5836 is closed, @michaelwoerister has done amazing work, and this is fixed! fn main() {
struct moo {a: float};
let x = [moo{a: 1.5}, moo{a: 2.3}];
printfln!("%?", x);
}
|
bjorn3
added a commit
to bjorn3/rust
that referenced
this issue
Jan 24, 2023
Push up a lot of rustc and cargo references
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
* Update toolchain to 2022-07-05 The updates required were related to the following changes: - Simplify memory ordering intrinsics - rust-lang#97423 - once cell renamings - rust-lang#98165 - Rename the ConstS::val field as kind - rust-lang#97935 - Remove the source archive functionality of ArchiveWriter - rust-lang#98098 - Use valtrees as the type-system representation for constant values - rust-lang#96591 * Codegen unimplemented for unsupported constant slices See model-checking/kani#1339 for more details. * Fix copyright check * Use codegen_option_span instead
Kobzol
pushed a commit
to Kobzol/rust
that referenced
this issue
Dec 30, 2024
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 2, 2025
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
"Up-to-date" test case:
(build with
rustc -Z debug-info
, then load it up in gdb and set a breakpoint onmain
.)Original reported test case follows
The values of a in gdb are wildly incorrect.
The text was updated successfully, but these errors were encountered: