Open fitzgen opened 6 years ago
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:
We can use
goblin
to parse IR nodes, but parsing IR edges might be a little trickier. TheDW_TAG_call_site
0 1 attribute, if present in the DWARF debugging information, could help. Otherwise, we'll need to disassemble instructions.