User forums > Help
Need verification on steps to enable pretty printers
Sab:
OS : Windows 7 64-bit
C::B version : 13.12
gcc version:4.9.2
I got gcc from equations.com http://www.equation.com/servlet/equation.cmd?fa=fortran
I want to enable pretty printers so I checked the form and read through posts.
1.http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000
2.https://code.google.com/p/qp-gcc/wiki/GDB
3.http://wiki.codeblocks.org/index.php?title=Pretty_Printers
I still have some confusions so I am going to state the steps to follow as I understood
1. Install python version 2.7.5(when I checked that download page it stated that there are few bugs and then ended up at Python 2.7.8 )
2. get gdb package from http://sourceforge.net/projects/gdbmingw/files/gdb2014-05-23.zip/download
3. get python scripts from http://qp-gcc.googlecode.com/files/stdcxx_and_wx_pythonscript.7z
4. Add the script path as mention in the second URL I used for reference (https://code.google.com/p/qp-gcc/wiki/GDB)
and I am good to go?
scarphin:
I don't think you need a python installation to use pretty printers but a python enabled gdb.
Sab:
--- Quote from: scarphin on May 12, 2015, 06:20:49 pm ---I don't think you need a python installation to use pretty printers but a python enabled gdb.
--- End quote ---
.http://forums.codeblocks.org/index.php/topic,11301.msg77000.html#msg77000 and https://code.google.com/p/qp-gcc/wiki/GDB in these post it is mentioned that installing python is a must.
And the my previous version (gcc4.7.2) which I also downloaded from http://www.equation.com/servlet/equation.cmd?fa=fortran was python enabled but the gcc 4.9.2 is not. After installing I noticed that there is a python command prompt in c:/MinGw/bin. I have attached screenshot for the same.
oBFusCATed:
You're mixing GCC and GDB. These are two separate projects!
GCC is the compiler, GDB is the debugger.
GCC has nothing to do with python.
You need python enabled GDB! I don't know if you really need to have separate python installation.
scarphin:
Hmm, I think ollydbg's gdb is linking to the official python installation which might be the case. The compiler and debugger I use (the one from mingw-builds) doesn't need a python installation and comes pretty much with everything bundled including a python interpreter (as in your screen shot), startup scripts and pretty printers. All I have to do is install the compiler, configure in CB, make sure 'settings->debugger->disable startup scripts' is not checked and it's ready to use with pretty printers. No python installation necessary. For your consideration...
Navigation
[0] Message Index
[#] Next page
Go to full version