I've noticed that C file paths located at GOROOT are elided when building Go binaries using cgo, which makes it impossible for debuggers to find those files. This was done on purpose in
CL 380915 to avoid having wrong paths when distributing the Go toolchain, as the real final GOROOT is not known when building it.
AFAIK, the Go toolchain no longer ship precompiled C archives, but they are built and cached as needed. This means that the right final GOROOT is known when building those C archives, and therefore we can partially revert CL 380915 (keeping the regression test). Am I missing something?