User forums > General (but related to Code::Blocks)
GUIDE - STL Pretty Print in Code::Blocks
GravityWell:
--- Quote from: oBFusCATed on October 26, 2012, 09:24:28 am ---
--- Quote from: killerbot on October 26, 2012, 07:39:41 am ---and what needs to be done for linux ? The guide doesn't mention that.
--- End quote ---
GDB on linux should be able to find the pretty printers automagically.
So it should just work. The STL ones are shipped with gcc >=4.5 by default.
Probably I should remove the old scripting functionallity at all :)
--- End quote ---
I'm working on adding this to Linux, and will update the guide. As far as I can tell, the printers are not included with GDB, at least with my version of Ubuntu. I had to download the printer and make a command file.
A problem with Codeblocks on Ubuntu is this:
I think a work around is to manually edit Codeblocks default.conf.
oBFusCATed:
--- Quote from: GravityWe11 on October 26, 2012, 07:20:00 pm ---I'm working on adding this to Linux, and will update the guide. As far as I can tell, the printers are not included with GDB, at least with my version of Ubuntu. I had to download the printer and make a command file.
--- End quote ---
Probably they are in a separate package you need to install.
Or this might be bug in ubuntu https://lists.ubuntu.com/archives/foundations-bugs/2011-October/046696.html
--- Quote from: GravityWe11 on October 26, 2012, 07:20:00 pm ---A problem with Codeblocks on Ubuntu is this:
I think a work around is to manually edit Codeblocks default.conf.
--- End quote ---
Which version of C::B is this?
GravityWell:
8466 - Oct 21 2012 via the Pasgui PPA.
oBFusCATed:
Morten: Can you apply the same magic you've applied here: http://svn.berlios.de/wsvn/codeblocks/trunk/src/sdk/resources/select_target.xrc?op=diff&rev=7937&peg=7937&ignorews=1 ?
GravityWell:
I have the python printers working in Ubuntu and will update the guide soon. Can anyone say why the -nx parameter is always being passed to GDB from Codeblocks?
http://sourceware.org/gdb/current/onlinedocs/gdb/Mode-Options.html
It disables GDB startup commands, so this removes our option to add pretty printers to ~/.gdbinit.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version