Skip to content

Reconsider debugger discovery for debuginfo test suite #148361

Open

Description

@jieyouxu

E.g. don't discover some random lldb from PATH when it's not explicitly configured, maybe explicitly asking for which debugger versions the user wants is the way-to-go, even if that requires more initial setup.

Activity

  1. added
    A-testsuiteArea: The testsuite used to check the correctness of rustc
    A-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
    C-bugCategory: This is a bug.
    A-compiletestArea: The compiletest test runner
    on Nov 1, 2025
  2. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 1, 2025
  3. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 1, 2025
  4. Zalathar commented on Nov 1, 2025

    @Zalathar
    Member

    One of the follow-ups after #148099 will be to move the gdb and cdb discovery (which do the same thing) out into bootstrap, so that at least all of the questionable debugger discovery will be in one place to be improved/fixed in a coherent way.

  5. jyn514 commented on Nov 1, 2025

    @jyn514
    Member

    i would expect this to take cues from how cross-compilers already work, where we require specifically lldb-19 (or whatever) instead of just “the first lldb in PATH”

  6. lolbinarycat commented on Nov 5, 2025

    @lolbinarycat
    Contributor

    I'm surprised we don't already have a field in bootstrap.toml that allows you to specify an exact path for these like we do for npm.

  7. Zalathar commented on Nov 5, 2025

    @Zalathar
    Member

    I'm surprised we don't already have a field in bootstrap.toml that allows you to specify an exact path for these like we do for npm.

    We do, but if that field isn't set then we fall back to whatever's in PATH, which is typically what happens in practice.

    (There doesn't seem to be a field for cdb specifically, despite compiletest having a --cdb command-line argument; I guess nobody ever fully hooked it up.)

  8. jieyouxu commented on Sep 7, 2026

    @jieyouxu
    MemberAuthor

    Update: after #159455

    • We now flip debugger discovery, it's explicit-by-default, but allows opt-in autodiscovery
    • We'll see if we can pin debugger versions in CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compiletestArea: The compiletest test runnerA-debuginfoArea: Debugging information in compiled programs (DWARF, PDB, etc.)A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions