Hi! I’ve been trying to run the Rust compiler through GDB, and I’ve been having an issue where it seems to only detect symbols present in the src/rustc/rustc.rs file, and not all of the child libraries where the code actually is. As an example, this is what I get when I run the
info functions command in gdb:
All defined functions: File src/rustc/rustc.rs: static fn rustc::main(); Non-debugging symbols: 0x00000000000006d0 _init 0x0000000000000700 std::rt::lang_start@plt 0x0000000000000710 rustc_driver::main@plt 0x0000000000000720 __libc_start_main@plt 0x0000000000000740 _start 0x0000000000000770 deregister_tm_clones 0x00000000000007b0 register_tm_clones 0x0000000000000800 __do_global_dtors_aux 0x0000000000000840 frame_dummy 0x0000000000000880 main 0x00000000000008b0 __libc_csu_init 0x0000000000000920 __libc_csu_fini 0x0000000000000924 _fini
debuginfo = true in the config.toml file which got those symbols there in the first place, but I haven’t been having any luck with getting all of the other symbols in. Is there something I need to do to GDB to get it to read those symbols, or is something going on during compilation? I’m compiling rustc through WSL on Windows 10, if that has anything to do with it.