资 源 简 介
A gcc plugin, which can be loaded when debugging gcc, to show internal structures graphically. Available commands include,
view-bb ---- show the basic block
view-bbs ---- show the basic blocks
view-cgraph ---- show the current call graph
view-dominance ---- show the current dominance graph
view-function ---- show the current function in tree-level
view-gimple-hierarchy ---- show gimple statement structure hierarchy
view-loop ---- show the loop
view-passes ---- show passes
view-rtx ---- show a specified rtx
view-tree ---- show a specified tree
view-tree-hierarchy ---- show tree structure hierarchy
view-tree-hierarchy-4-6 ---- show tree structure hierarchy for gcc 4.6
view-tree-hierarchy-4-7 ---- show tree structure hierarchy for gcc 4.7
Here"s an example about how to use vcg-plugin in gdb (with vcg-plugin.gdbinit):
gdb -q -args