radeco icon indicating copy to clipboard operation
radeco copied to clipboard

Use basic block information from radare

Open HMPerson1 opened this issue 6 years ago • 3 comments

Currently, we just get a list of instructions from R2Api::function (pdfj) and then manually make basic blocks whenever we find a jump instruction while constructing the SSA. Radare already provides information about a function's basic blocks (afbj), so it would be a lot simpler to just use this instead of rederiving it ourselves. This would also (in theory) allow us to use information about jump tables that radare found (though currently radare doesn't output that anywhere).

HMPerson1 avatar Aug 09 '18 04:08 HMPerson1

Define the format you want to see the information about jump tables. Remember that general idea is to get information from radare2 and, if radeco can, refine it, and send back to radare2.

XVilka avatar Aug 09 '18 04:08 XVilka

radare/radare2#11022

HMPerson1 avatar Aug 10 '18 21:08 HMPerson1

@HMPerson1 any update on this one?

XVilka avatar Sep 27 '18 08:09 XVilka