
Hello: Is is possible that boost have gdb pretty prints??.. It's works great with std objects, it will be awesome if boost have it too!! Salu2... masch...

AMDG Mario Chacon wrote:
Is is possible that boost have gdb pretty prints??..
Not that I know of. There are some for visual studio https://svn.boost.org/trac/boost/wiki/DebuggerVisualizers
It's works great with std objects, it will be awesome if boost have it too!!
It seems like a useful feature. Would you be willing to write some? In Christ, Steven Watanabe

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?
Salu2..
masch...
On Thu, Jun 25, 2009 at 4:40 PM, Steven Watanabe
AMDG
Mario Chacon wrote:
Is is possible that boost have gdb pretty prints??..
Not that I know of. There are some for visual studio https://svn.boost.org/trac/boost/wiki/DebuggerVisualizers
It's works great with std objects, it will be awesome if boost have it
too!!
It seems like a useful feature. Would you be willing to write some?
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Fri, Jun 26, 2009 at 9:49 AM, Mario Chacon
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. To learn the GDB macro syntax just google for "gdb macro syntax". Additionally, you can refer to this page: http://www.yolinux.com/TUTORIALS/GDB-Commands.html#STLDEREF which, specifically contains this .gdbinit file (which is where you add macros) http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.txt that contains many examples of pretty printing STL containers. 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.

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: http://tromey.com/blog/?p=524 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

Sorry, yes I was referring the pretty print that Volodya said.
So Is it possible to start with some libraries???
Salu2...
masch...
On Fri, Jun 26, 2009 at 12:42 PM, Vladimir Prus
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

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==--
participants (5)
-
Mario Chacon
-
Steven Watanabe
-
tom fogal
-
Vladimir Prus
-
Zachary Turner