{"id":38135530,"url":"https://github.com/bieganski/dwarfseeker","last_synced_at":"2026-01-16T22:41:12.341Z","repository":{"id":270950635,"uuid":"911943478","full_name":"bieganski/dwarfseeker","owner":"bieganski","description":"extract functions addresses (together with inline expansions) from ELF's DWARF debug info.","archived":false,"fork":false,"pushed_at":"2025-05-08T18:19:34.000Z","size":13,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-08T19:21:03.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bieganski.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}},"created_at":"2025-01-04T09:05:04.000Z","updated_at":"2025-05-08T18:19:37.000Z","dependencies_parsed_at":"2025-01-04T10:34:21.298Z","dependency_job_id":"22bc975d-1f03-45a6-877e-785d53a6abc5","html_url":"https://github.com/bieganski/dwarfseeker","commit_stats":null,"previous_names":["bieganski/dwarfseeker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bieganski/dwarfseeker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bieganski%2Fdwarfseeker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bieganski%2Fdwarfseeker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bieganski%2Fdwarfseeker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bieganski%2Fdwarfseeker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bieganski","download_url":"https://codeload.github.com/bieganski/dwarfseeker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bieganski%2Fdwarfseeker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28485617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: 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":[],"created_at":"2026-01-16T22:41:12.202Z","updated_at":"2026-01-16T22:41:12.322Z","avatar_url":"https://github.com/bieganski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example\n\n```cpp\n// test.cc\n\nclass MyClass {\n\npublic:\nint value;\n\n    __attribute__ ((noinline))\n    MyClass(int value) : value(value * 0x123) {}\n\n    __attribute__ ((always_inline))\n    MyClass(unsigned int value) : value((int) value * 0x345) {}\n};\n\nint main(int argc, char** argv) {\n    auto instance1 = MyClass(argc);\n    auto instance2 = MyClass((unsigned int) argc);\n    return 0 ;\n}\n\n```\n\n```bash\ng++ -g3 test.cc\n```\n\n```bash\nm.bieganski@hostname:~$ ./dwarfseeker.py  -d a.out  | c++filt\nENTRY_TYPE,FILE_START_OFFSET,FILE_END_OFFSET,SYMBOL_NAME,COMPILATION_UNIT_PATH\nREGULAR_FUNCTION,0x1149,0x11aa,main,home/m.bieganski/test.cc\nINLINE_EXPANSION,0x1182,0x118f,MyClass::MyClass(unsigned int),home/m.bieganski/test.cc\nOUT_OF_LINE,0x11aa,0x11cb,MyClass::MyClass(int),home/m.bieganski/test.cc\n```\n\n```bash\nm.bieganski@hostname:~$ objdump -d  ./a.out | c++filt\n...\n0000000000001149 \u003cmain\u003e:\n    1149:\tf3 0f 1e fa          \tendbr64 \n    114d:\t55                   \tpush   %rbp\n...\n00000000000011aa \u003cMyClass::MyClass(int)\u003e:\n    11aa:\tf3 0f 1e fa          \tendbr64\n    11ae:\t55                   \tpush   %rbp\n...\n    1182:\t8b 45 f4             \tmov    -0xc(%rbp),%eax\n    1185:\t69 c0 45 03 00 00    \timul   $0x345,%eax,%eax     // note inline expansion\n    118b:\t89 45 f0             \tmov    %eax,-0x10(%rbp)\n    118e:\t90                   \tnop\n    118f:\tb8 00 00 00 00       \tmov    $0x0,%eax\n    1194:\t48 8b 55 f8          \tmov    -0x8(%rbp),%rdx\n...\n```\n\n# Distribution\n\n* MIT license\n* a single Python script\n* `pyelftools` is the only external dependency (see [requirements.txt](./requirements.txt))\n* works for any architecture that is supported by `pyelftools`. For non-x86, usually there is a limitation, that the input ELF shall not have relocations (ET_EXEC should always work)\n\n# Complementary tools in this repo\n* [find_in_range.py](tools/find_in_range.py) - like `addr2line`, but crafted for `dwarfseeker.py` output. Quickly answer the question \"to which function does addr X belongs to\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbieganski%2Fdwarfseeker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbieganski%2Fdwarfseeker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbieganski%2Fdwarfseeker/lists"}