twiggy
twiggy copied to clipboard
Support for more binary formats
We can use goblin to parse IR nodes, but parsing IR edges might be a little trickier. The DW_TAG_call_site 0 1 attribute, if present in the DWARF debugging information, could help. Otherwise, we'll need to disassemble instructions.
- [ ] ELF
- [ ] Mach-O
- [ ] PE/COFF
I've got some code in ddbug that uses capstone to disassemble instructions to find calls, and a copy in findpanics too. It's currently incomplete, but I'm working on updating it. Maybe I should put this in its own crate so that twiggy can use it too?
@philipc that would be greatly appreciated! Thank you for offering :slightly_smiling_face: