[PATCH] Add debug_function_graph_to_file

Richard Biener richard.guenther@gmail.com
Wed Feb 17 14:00:00 GMT 2016


On Wed, Feb 17, 2016 at 2:51 PM, Marek Polacek <polacek@redhat.com> wrote:
> On Wed, Feb 17, 2016 at 02:45:36PM +0100, Richard Biener wrote:
>> OTOH I have in my local trees a more convenient form (attached).
>>
>> (gdb) call debug_dot_cfg (cfun, 1<<6)
>>
>> and a X window with the dotted graph opens.
>
> Is there any chance we could get this into the mainline?  I'd love to use
> this without having to patch my tree locally.  If I remember correctly
> there were some issues with unportable popen()?

I think I never posted it for inclusion.  The ??? would also need investigation,
probably using a temporary file is easier (though would require manual
cleaning).

What does it take to write it in python instead?

Richard.

>         Marek



More information about the Gcc-patches mailing list