compiler/rustc_codegen_gcc/doc/debugging.md
Run the command with -v -save-temps and then extract the lto1 line from the output and run that under the debugger.
First, run the tests normally:
It will show the command it ran, something like this:
sde -future -rtm_mode full -- /home/user/projects/rustc_codegen_gcc/build/build_sysroot/sysroot_src/library/stdarch/target/debug/deps/core_arch-fd2d75f89baae5c6 (signal: 11, SIGSEGV: invalid memory reference)Then add the -debug flag to it:
To see the symbols in gdb, specify the executable in your command:
and then write the gdb command that sde tells you to use, something like: