# std.debug: Fall back to \.eh_frame/\.debug_frame if \.eh_frame_hdr is incomplete\. · gitcafe/zig

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

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

Visibility: public

Requested revision: 180db2bf23f05a02876d4567cac3b04842c11acb

Requested commit: 180db2bf23f05a02876d4567cac3b04842c11acb

Commit: 180db2bf23f05a02876d4567cac3b04842c11acb

Tree: c30cddc29ae1f1162f3ec38fcaf89b94ecb4e6dd

Author: Alex Rønne Petersen

Committer: mlugg

## Message

```
std.debug: Fall back to .eh_frame/.debug_frame if .eh_frame_hdr is incomplete.

When using the self-hosted backends, especially in incremental mode, the
.eh_frame_hdr section may be incomplete, so we can't treat it as authoritative.

Instead, if we started out intending to use .eh_frame_hdr but find that it's
incomplete, load .eh_frame/.debug_frame on demand and use that info going
forward.

```

## Parents

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

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