Skip to content
Discussion options

You must be logged in to vote

GDB doesn't really understand Rust very well; further it doesn't want to be restricted by Rust's rules, which make debugging harder. Treating the location of x as a mutable raw pointer is what allows you to set x's value in GDB:

(gdb) set x = 52
(gdb) print x
$2 = 52

Probably some text to this effect should be added here somewhere.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iampi31415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants