We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
struct Foo { dtor: extern "C" fn(), } extern "C" fn dtor() { } fn main() { let foo = Foo { dtor: dtor }; let foo2 = Some(dtor); let foo3 = dtor; println!("{:?}", foo); }
[jdm@rosencrantz tmp]$ gdb dtor (gdb) break dtor.rs:12 Breakpoint 1 at 0x405068: dtor.rs:12. (2 locations) (gdb) r Starting program: /tmp/dtor Breakpoint 1, dtor::main () at dtor.rs:12 12 println!("{:?}", foo); (gdb) p foo $1 = { dtor = <error reading variable> (gdb) p foo2 $2 = { <error reading variable> (gdb) p foo3 $3 = {void ()} 0x7fffffffdca8 (gdb)
cc @michaelwoerister
The text was updated successfully, but these errors were encountered:
Thanks for the filing the issue, Josh!
Sorry, something went wrong.
rust-gdb now prints
rust-gdb
(gdb) p foo $1 = Foo = {dtor = {void (void)} 0x7fffffffe088} (gdb) p foo2 $2 = Some = {{void (void)} 0x7fffffffe080} (gdb) pfoo3 Undefined command: "pfoo3". Try "help". (gdb) p foo3 $3 = {void (void)} 0x7fffffffe078 (gdb) p foo2 $2 = Some = {{void (void)} 0x7fffffffe080} (gdb) p foo3 $3 = {void (void)} 0x7fffffffe078
So seems good!
Auto merge of rust-lang#14361 - Veykril:if-then-parse, r=Veykril
924d277
fix: Fix `ast::IfExpr` child accessors Fixes rust-lang/rust-analyzer#14360
No branches or pull requests
cc @michaelwoerister
The text was updated successfully, but these errors were encountered: