Mario Chacon
Sorry, yes I was referring the pretty print that Volodya said. So Is it possible to start with some libraries???
Just look at the ones in libstdc++. They look fairly obvious; you just need to know the internal names for the data structures in question. I don't think you really need a boost-specific example. -tom
On Fri, Jun 26, 2009 at 12:42 PM, Vladimir Prus
wrote: Zachary Turner wrote:
On Fri, Jun 26, 2009 at 9:49 AM, Mario Chacon
wrote: eheh... I do not know enough to write pretty prints, it's will be help if there are some example that other can continue, Do you know if exist some pretty print boost exampless?
It's nothing specific to boost, you just have to learn the GDB macro language. One of the difficulties in writing GDB pretty prints is that, unlike with Visual Studio debug visualizers, GDB pretty printing does not happen "automatically". You have to write a special command for every single type you want to pretty print. "printboostvariant", "printboostany", "printboostfspath", etc. It's a little bit annoying for sure. You can get around this even by writing a GDB plugin.
I guess much of confusion has resulted from the fact that Mario did not say what exactly he is talking about. The GDB pretty-printers he mention have nothing to do with that inadequate-for-anything GDB macro language. These are Python pretty-printers. See:
These are also documented in the development version of the GDB.
If you want to write a GDB plugin, there is not as much available info, but you can refer to this page:
http://sourceware.org/ml/gdb-patches/2008-05/msg00671.html
in which someone submitted a plugin for GDB to automatically display correctly STL types just by using the normal "print" statement.
That specific patch did not went further, since Python support was already in development.
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
--000325572b8267bfec046d42c9d0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry, yes I was referring the pretty print that Volodya said.<br>So Is it = possible to start with some libraries???<br><br>Salu2...<br>masch...<br>
On Fri, Jun 26, 2009 at 12:42 PM, Vladimir Prus= <vladimi= r@codesourcery.com</a>></span> wrote:<br>Zachary Turner wrote:<br> <br> > On Fri, Jun 26, 2009 at 9:49 AM, Mario Chacon<the.masch@gmail.com</a>> wrote:<br> >> eheh... I do not know enough to write pretty prints, it's will= be help if<br> >> there are some example that other can continue, Do you know if exi= st some<br> >> pretty print boost exampless?<br> >><br> ><br> ><br> > It's nothing specific to boost, you just have to learn the GDB mac= ro<br> > language. =C2=A0One of the difficulties in writing GDB pretty prints i= s<br> > that, unlike with Visual Studio debug visualizers, GDB pretty printing= <br> > does not happen "automatically". =C2=A0You have to write a s=
<br> </div>I guess much of confusion has resulted from the fact that Mario did n= ot<br> say what exactly he is talking about. The GDB pretty-printers he mention
have nothing to do with that inadequate-for-anything GDB macro language.
These are Python pretty-printers. See:<br> <br> =C2=A0 =C2=A0 =C2=A0 =C2=A0http://tromey.com/blog/?p=3D524" tar= get=3D"_blank">http://tromey.com/blog/?p=3D524</a><br> <br> These are also documented in the development version of the GDB.<br>
<br> > If you want to write a GDB plugin, there is not as much available<br> > info, but you can refer to this page:<br> ><br> > http://sourceware.org/ml/gdb-patches/2008-05/msg00671.html"= target=3D"_blank">http://sourceware.org/ml/gdb-patches/2008-05/msg00671.ht= ml</a><br> ><br> > in which someone submitted a plugin for GDB to automatically display > correctly STL types just by using the normal "print" stateme= nt.<br> <br> </div>That specific patch did not went further, since Python support was al= ready<br> in development.<br> <br> - Volodya<br> <div><div></div><br> <br> <br> _______________________________________________<br> Boost-users mailing list<br> Boost-users@lists.boost.org<= /a><br> http://lists.boost.org/mailman/listinfo.cgi/boost-users" target= =3D"_blank">http://lists.boost.org/mailman/listinfo.cgi/boost-users</a><br> </div></div></blockquote></div><br>--000325572b8267bfec046d42c9d0--
--===============0305474003== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users --===============0305474003==--