On Fri, Feb 19, 2016 at 1:37 AM, Tom de Vries <tom_devr...@mentor.com> wrote:
> On 18/02/16 16:27, Richard Biener wrote:
>>
>> Attached is what I have for now, it works if you call it like
>>
>> (gdb) dot-fn cfun
>> (gdb) dot-fn cfun, 1<<6
>>
>> w/o that arg parsing;)
>>
>> I'll play with it some more tomorrow.
>
>
> This version:
> - uses arg parsing
> - adds error handling
> - uses a temp file instead of a pipe
> - uses python os.system to call dot

I used popen specifically to allow you continue debugging while keeping the dot
process open and functional.  That would be restored with adding a '&' after
the command but then we race with the file removal ...

The following works for me though:

        # Show graph in temp file
        os.system("( dot -Tx11 %s; rm %s ) &" % (filename, filename) )

dot_fn()

ok for trunk with that change and thanks for the help!

Now if the TDF_ flags were available in gdb (without -g3) that would be
awsome.  I guess moving them into a enum would work but also require
some extra casts everywhere...

Thanks,
Richard.

> - adds documentation
>
> Thanks,
> - Tom

Reply via email to