First we need to create a certificate. The llvm provided a way to do
that, but I found this
way to work slightly better for me. Just substitute
lldb_codesign
for the certificate name, instead of gdb-cert
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_bb_id(graph, ea): | |
for block in graph: | |
if block.startEA <= ea and block.endEA > ea: | |
return block.id | |
start_ea = 0x15f9ad6 | |
base_block_ea = 0x15f9a60 | |
f = get_func(start_ea) | |
g = FlowChart(f, flags=FC_PREDS) #??? |