This is the mail archive of the 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: GDB hooks for debugging GCC

On Mon, Aug 19, 2013 at 9:56 PM, Jeff Law <> wrote:
> On 08/02/2013 07:48 PM, David Malcolm wrote:
>> GDB 7.0 onwards supports hooks written in Python to improve the
>> quality-of-life within the debugger.  The best known are the
>> pretty-printing hooks [1], which we already use within libstdc++ for
>> printing better representations of STL containers.
> So as I mentioned during the Cauldron, I really like this and feel it could
> simplify certain aspects of debugging.  What's even better is we can easily
> twiddle this stuff to further improve the experience as we use it more.  Of
> course I'm particularly interested in blocks & edges, so that's where you'll
> probably see further feedback from me.

I assume you mean basic blocks and edges? For that, you can already
use the CFG pretty printers with a file attached to a pipe and sent
through XDot ( which is
written in Python and quite easy to integrate in a GDB Python routine.
(I did just that not too long ago but I can't find the code just now.)


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