Hello. On Sunday 21 March 2010 19:40:45 ext Alex Richardson wrote: > Hello, > > is it possible to use the gdbmacros.py/dumper.py with GDB (without QtCreator)?
The code in the gdbmacros.py/dumper.py is geared towards producing whatever is useful to Qt Creator, including some ad-hoc data compression and encoding that makes the output probably not too useful without using some "client code" very similar to Creator's debugger plugin. However, gdb itself has a way to "pretty print" structures using Python. This is probably the best starting point if you don't want to use Qt Creator. You might be able to "re-use ideas" from gdbmacros.py, but the syntax is fairly different, so at least on the surface this would be a re-implementation. > If so I would be highly interested in finding out how to achieve that. > > I hope some editing of .gdbinit would be enough, but i suspect that won't > suffice. Just running "python execfile('..../dumper.py')" is certainly possible, but you'd still need to interpret the output or replace the output generation by something that fits your needs better. Maybe it is possible to give more detailed advice if we know what you try to accomplish exactly. Andre' _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator