Skip to content

Bash scripts distributed with Windows toolchians #148409

Open

Description

@ChrisDenton

On Windows (including msvc since 1.85) We currently distribute distribute the following extension-less bash scripts to run debuggers: rust-gdb, rust-gdbgui and rust-lldb, However, this currently breaks rustup and fixing this is non-trivial because there isn't a native way to run bash scripts.

Distributing these seems to be an accidental side-effect of distributing the py files. I would suggest either:

  • remove the bash scripts entirely
  • create .bat alternatives (or maybe powershell)

Activity

  1. added
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 2, 2025
  2. added
    O-windowsOperating system: Windows
    A-debuggersArea: debuggers themselves (gdc, lldb, cdb, WinDbg, etc.)
    on Nov 2, 2025
  3. ChrisDenton commented on Nov 2, 2025

    @ChrisDenton
    MemberAuthor

    We do already have rust-windbg.cmd which is a batch script. However, that's not one of the executables that rustup proxies.

  4. added
    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.
    and removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Nov 3, 2025
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-debuggersArea: debuggers themselves (gdc, lldb, cdb, WinDbg, etc.)C-bugCategory: This is a bug.O-windowsOperating system: WindowsT-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