Stream: t-compiler/help

Topic: gdb print variable

csmoe (May 10 2020 at 03:31, on Zulip):

some local variables are <optimized out> when debuging rustc with gdb, how can I prevent this?
will configure --disable-optimize help?

Derek (May 10 2020 at 17:09, on Zulip):

Did you build rustc by yourself, following instruction in
Especially you need, cp config.toml.example config.toml and set debug=true

Vadim Petrochenkov (May 10 2020 at 23:48, on Zulip):

FWIW, I've never seen anything in rustc that wouldn't be <optimized out> on windows-msvc or windows-gnu, even when built with debuginfo-level = 2.

Vadim Petrochenkov (May 10 2020 at 23:52, on Zulip):

I didn't investigate why it happens, debugging seems to work on hello-world like examples.
Perhaps build system is doing something wrong.

Last update: Sep 27 2020 at 14:15UTC