Could `__counted_by(...)` and similar emit DWARF to let LLDB and GDB render arrays?
Open
debuginfo
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Idea from: https://hachyderm.io/@seanmiddleditch/116254641521951864
This seems like a pretty great idea, especially for the new annotations that are part of the direction of `-fbounds-safety` to add extra value for folks adopting these annotations!
Contributor guide
Research direction
Start by reading the existing handling of __counted_by and related -fbounds-safety annotations, then trace how DWARF is emitted and how LLDB and GDB render arrays. Done requires an agreed design and implementation path covering the annotation information, debug metadata, and debugger display behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- compilers, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100