rust-lang / rust-lang/rust

Emit file size and hash for source files in DWARF debug info (DWARF 4 and 5)

Open
#149,733 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-debuginfo C-enhancement needs-triage T-compiler
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Emitting them enables debuggers to detect stale and out-of-sync source files (see https://github.com/al13n321/nnd/issues/51). Both DWARF 4 and DWARF 5 support file size as .debug_line, and DWARF 5 supports md5 hashes via DW_LNCT_MD5, which clang always emits.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by locating Rust's DWARF debug-line emission and compare its DWARF 4 and 5 handling with the stated .debug_line file-size support and DWARF 5 DW_LNCT_MD5 behavior; done means emitted size and hash data lets debuggers detect stale source files.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.