{"id":48893819,"url":"https://github.com/p-x9/swift-dwarf","last_synced_at":"2026-04-16T10:04:50.213Z","repository":{"id":349192465,"uuid":"958738382","full_name":"p-x9/swift-dwarf","owner":"p-x9","description":"🐞 A Swift library for parsing binary files to obtain DWARF information.","archived":false,"fork":false,"pushed_at":"2026-04-13T13:28:52.000Z","size":323,"stargazers_count":21,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-14T08:42:33.543Z","etag":null,"topics":["dwarf","mach-o","reverse-engineering"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p-x9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-01T17:22:03.000Z","updated_at":"2026-04-13T13:28:55.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/p-x9/swift-dwarf","commit_stats":null,"previous_names":["p-x9/swift-dwarf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/p-x9/swift-dwarf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-x9%2Fswift-dwarf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-x9%2Fswift-dwarf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-x9%2Fswift-dwarf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-x9%2Fswift-dwarf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p-x9","download_url":"https://codeload.github.com/p-x9/swift-dwarf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p-x9%2Fswift-dwarf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dwarf","mach-o","reverse-engineering"],"created_at":"2026-04-16T10:04:50.043Z","updated_at":"2026-04-16T10:04:50.208Z","avatar_url":"https://github.com/p-x9.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-dwarf\n\nA Swift library for parsing binary files to obtain DWARF information.\n\n\u003e [!NOTE]\n\u003e Currently, only mach-o binaries are supported.\n\u003e ([MachOKit](https://github.com/p-x9/MachOKit))\n\u003e\n\u003e Support for ELF binaries will also be added in the future.\n\u003e ([ELFKit](https://github.com/p-x9/ELFKit))\n\n\u003c!-- # Badges --\u003e\n\n[![Github issues](https://img.shields.io/github/issues/p-x9/swift-dwarf)](https://github.com/p-x9/swift/issues)\n[![Github forks](https://img.shields.io/github/forks/p-x9/swift-dwarf)](https://github.com/p-x9/swift-dwarf/network/members)\n[![Github stars](https://img.shields.io/github/stars/p-x9/swift-dwarf)](https://github.com/p-x9/swift-dwarf/stargazers)\n[![Github top language](https://img.shields.io/github/languages/top/p-x9/swift-dwarf)](https://github.com/p-x9/swift-dwarf/)\n\n## Usage\n\n### Basic\n\nDWARF information from binary file (MachOFile) can be retrieved via the `dwarf` property.\n\n```swift\nimport MachOKit\nimport DWARF\n\n// string table in `.debug_str` section\nlet strings = machO.dwarf.strings\n\n// abbreviations tables in `.debug_abbrev` section\nlet abbreviationSets = machO.dwarf.abbreviationsSets\n\n// compilation units in `.debug_info` section\nlet compilationUnits = machO.dwarf.compilationUnits\n/* ... */\n```\n\n[DWARFMachOPrintTests.swift](/Tests/DWARFTests/DWARFMachOPrintTests.swift) provides test cases that generate output similar to dwarfdump.\nPlease use these as a reference.\n\n## Status\n\n### Supported Binary formats\n\n- [x] mach-o\n- [ ] ELF\n\n### Supported DWARF sections\n\n- [x] `.debug_abbrev`\n- [x] `.debug_info`\n- [x] `.debug_line`\n- [x] `.debug_str`\n- [x] `.debug_line_str`\n- [x] `.debug_str_offs`\n- [x] `.debug_addr`\n- [x] `.debug_aranges`\n- [x] `.debug_rnglists`\n- [x] `.debug_loclists`\n- [x] `.debug_names`\n- [ ] `.debug-macro`\n- [ ] `.debug-pubnames`\n- [ ] `.debug-pubtypes`\n- [ ] `.debug-ranges`\n\n## License\n\nswift-dwarf is released under the MIT License. See [LICENSE](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-x9%2Fswift-dwarf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp-x9%2Fswift-dwarf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp-x9%2Fswift-dwarf/lists"}