# dwarf: add support for DWARF5 DW_AT_ranges in subprograms, add DebugRangeIterator · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f04f9705cca5cccdfaff2eab0e57e9bd253e8441)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f04f9705cca5cccdfaff2eab0e57e9bd253e8441

Requested commit: f04f9705cca5cccdfaff2eab0e57e9bd253e8441

Commit: f04f9705cca5cccdfaff2eab0e57e9bd253e8441

Tree: 5858ae583a35f98dd0e670cf7566297b712d8676

Author: kcbanner

Committer: kcbanner

## Message

```
dwarf: add support for DWARF5 DW_AT_ranges in subprograms, add DebugRangeIterator

Some DWARF5 subprograms have non-contiguous instruction ranges. An example of such
a function is `puts` in Ubuntu's libc. This change fixes name lookups for functions that use
DW_AT_range in their DIE.

```

## Parents

- [395ab474eba31f5bbe95e96cab06ab066384c4af](https://git.cafe/gitcafe/zig/commit/395ab474eba31f5bbe95e96cab06ab066384c4af?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f04f9705cca5cccdfaff2eab0e57e9bd253e8441?format=markdown)
