Hi I am trying to invoke gdb to debug rustc for my general understanding of the compiler, as well as understanding the call stack. but I don't seem to be able to debug as I would like to.
Currently, I am doing
$ rust-gdb --args ./build/x86_64-unknown-linux-gnu/stage1/bin/rustc ~/projects/test/test.rs
and then in gdb, I do
b rustc_driver::main l
but it doesn't print the surrounding code.
The corresponding section in the developer's guide does not mention debugger. How do you actually do it?