How to accomplish GenFuncGdl? I mean, what idc functions are used to accomplish GenFuncGdl? I look up idc.py, about this function:
def GenFuncGdl(outfile, title, ea1, ea2, flags):
"""
Generate a flow chart GDL file
@param outfile: output file name. GDL extension will be used
@param title: graph title
@param ea1: beginning of the area to flow chart
@param ea2: end of the area to flow chart.
@param flags: combination of CHART_... constants
@note: If ea2 == BADADDR then ea1 is treated as an address within a function.
That function will be flow charted.
"""
return idaapi.gen_flow_graph(outfile, title, None, ea1, ea2, flags)
from there, we just know that simply call idaapi.gen_flow_graph.
In fact, I need to reverse a function flow, because there are many branches in this function, I do not know how to recognize branch chunks. only check jump instruction, Maybe?