I am creating ansi c application testing tool. Just download the code, view the control flow diagram, run the test, mark all the vertices that were deleted. I am trying to build my own CFG from code analysis. Unfortunately, it got messed up if the code is nested. GCC allows you to get CFG from compiled code. I can write a parser to output it, but I need line numbers to set breakpoints. Is there a way to get line numbers when displaying a flow control graph using -fdump-tree-cfg or -fdump-tree-vcg ?
c gcc graph ansi
Eloar May 6 '13 at 7:23 2013-05-06 07:23
source share