This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add debug_function_graph_to_file


Richard> What does it take to write it in python instead?

IIUC you're asking for it to display the function graph at a given point
in time.  This is easy - you can just dump it to a file and then run the
appropriate visualization tool.

Once upon a time I also wrote Python code to display a function's CFG
from Python, and then update it as you stepped through gcc.  This is on
the "demo" branch here https://github.com/tromey/gdb-gui.  It's probably
bit-rotted by now but it shows the general idea.  This was for a talk at
FOSDEM, the video is online if you want to see what it looks like.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]