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 any DW_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).
We probably could emit less debuginfo when compiling with
-Cdebuginfo=1than 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_subprogramentries; 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).