# macho: fix DWARF in dSYM and sym naming more consistent · gitcafe/zig

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

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

Visibility: public

Requested revision: 6461b9516371d22d347c27b5fcd2e8c22fafd03d

Requested commit: 6461b9516371d22d347c27b5fcd2e8c22fafd03d

Commit: 6461b9516371d22d347c27b5fcd2e8c22fafd03d

Tree: 4d11bd6cfeca70ff1f82b1318ef75c8722695278

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: fix DWARF in dSYM and sym naming more consistent

* Advance line and PC prior to ending sequence in debug line program
  for a fn_decl. This is equivalent to closing scope in the debugger
  and without it, the debugger will not map source-to-address info
  as a result will not print the source when breaking at a symbol.
* Fix debug aranges sentinels to be of the size as the actual tuple
  descriptor (assuming segment selector to be ommitted). In summary,
  the sentinels were 32bit 0s, whereas they ought to be 64bit 0s.
* Make naming of symbols in the binary more consistent by prefixing
  each symbol name with an underscore '_'.

```

## Parents

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

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