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 18:47 Go to next message
Chris Seddon is currently offline Chris Seddon
Messages: 1
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 03:29 Go to previous message
Axel Mueller is currently offline Axel Mueller
Messages: 1927
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: Sat Apr 19 18:39:20 EDT 2014

Powered by FUDForum. Page generated in 0.05673 seconds