debuginfo: Line-tables-only mode emits much more debuginfo than Clang #64405
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We probably could emit less debuginfo when compiling with
-Cdebuginfo=1
than we do at the moment. Clang 8.0 emits a lot less debuginfo when compiling with-gline-tables-only
, with debuginfo not containing anyDW_TAG_subprogram
entries; while stepping through the code with gdb still works.However, reducing the amount of debuginfo emitted should be done with care since external tools rely on the current behavior (see e.g. #60020).
The text was updated successfully, but these errors were encountered: