llvm / llvm/llvm-project

Could `__counted_by(...)` and similar emit DWARF to let LLDB and GDB render arrays?

Open
#187,453 6 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.