Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Gdb Pretty Print on Windows(Can't find a gdb that supports python)
Gdb Pretty Print on Windows [message #885388] Tue, 12 June 2012 22:47 Go to next message
Chris Seddon is currently offline Chris SeddonFriend
Messages: 5
Registered: June 2012
Junior Member
I've been trying for ages to get gdb pretty printing to work on Windows, but everything fails eventually. I nearly got it to work on one occasion, but gdb crashed CDT.
I can't understand why this feature is so difficult to install - Visual Studio works out of the box. I'm using gcc 4.7 with MinGW and I've tried lots of versions of Eclipse, lots of versions of gdb, but to no avail.
Is there a definitive version of the {MinGW, CDT, Eclipse, Gdb} set that is known to work. The Gdb is particularly annoying, because the latest versions are supposed to support Python scripting, but don't and building from source keeps failing (not to mention being very complicated).

CDT is a brilliant product, but no STL debugging is a major drawback.



Re: Gdb Pretty Print on Windows [message #885529 is a reply to message #885388] Wed, 13 June 2012 07:29 Go to previous message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Prebuild gdb 7.4 with python support can be downloaded from http://sourceforge.net/projects/mingw/files/MinGW/Extension/gdb/GDB-7.4/

Additionally, you will need to install python 2.7.x available via python.org

To get pretty printing for STL follow the instructions here (where to get the python script and what to add to your gdbinit file)
http://wiki.eclipse.org/CDT/User/FAQ#How_can_I_inspect_the_contents_of_STL_containers.3F





Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Previous Topic:Could not find include file on include paths
Next Topic:Doubt: Adding new optimizations flags
Goto Forum:
  


Current Time: Fri Apr 26 22:57:53 GMT 2024

Powered by FUDForum. Page generated in 0.02956 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top