Open
Metadata
Metadata
Assignees
Labels
Area: The compiletest test runnerArea: Debugging information in compiled programs (DWARF, PDB, etc.)Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: An issue proposing an enhancement or a PR with one.Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
ChrisDenton commentedon Nov 16, 2024
Looks like it just hard codes the path, aside from using
ProgramFiles(x86)
environment variable as the base directory:rust/src/tools/compiletest/src/debuggers.rs
Line 79 in 46e8d20
jieyouxu commentedon Nov 16, 2024
That's kinda what I expected yeah. On one hand it saves you from having to manually specify it in
PATH
. On the other hand...ChrisDenton commentedon Nov 16, 2024
The simplest fix would be to check
PATH
first then fallback. However, it would be important to make sure that doesn't cause issues. E.g. we had problems with there being a msys2link.exe
that is not at all related to msvc'slink.exe
.ChrisDenton commentedon Nov 16, 2024
That said, I would note that there is a
--cdb
option for providing a path manually.jieyouxu commentedon Nov 16, 2024
AFAIK compiletest's cli are mostly for use by bootstrap, I'm not sure if that actually works. Maybe
./x test debuginfo -- --cdb=...
but I haven't double-checked yet.ChrisDenton commentedon Nov 16, 2024
x test debuginfo --test-args --cdb=...
should always work, no? The purpose of--test-args
is to ensure arguments are passed through.jieyouxu commentedon Nov 16, 2024
Ah right. Forgot about that.
hkBst commentedon Jan 22, 2025
What doc changes would you like to see here?
jieyouxu commentedon Jan 22, 2025
Something simple like the following would go a long way:
cdb
detection will look for a local cdb through a hard-coded search underProgramFiles(x86)
orProgramFiles
depending on host, and does not respectPATH
.cdb
, e.g../x test debuginfo --test-args --cdb=...
.Probably send the doc PR against rustc-dev-guide and not here.