Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Noob question regarding STL debug(Can't figure out how to setup pretty printing)
Noob question regarding STL debug [message #743019] Thu, 20 October 2011 23:46 Go to next message
Eclipse UserFriend
I'm using the indigo version of eclipse. I've read the FAQ but I don't quite understand it. (evidently, I am not allowed to post links yet).

I am a windows user (windows vista).[/b] What does the following command do and does it apply to a windows user?
svn co svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python

I followed that link and manually downloaded the python files. I think created the .gdbinit file as instructed. One issue that I have is that I am not clear about what is meant by the root project directory.

The following was copy and pasted from the console so that you can see the mingw gdb version.
C:\MinGW\bin>gdb
GNU gdb (GDB) 7.3

I also see gdb-python27.exe in addition to the gdb.exe within the mingw\bin directory. So I tried changing the gdb settings to point to that gdb-python27.exe and the new .gdbinit file. I didn't find an existing .gdbinit file, so I assumed that I should just create it and put it somewhere on my c drive, and updated the preferences to point to that. The following error occurred when trying to debug my c++ project.


Error in final launch sequence
Failed to execute MI command:
source C:\PythonPrettyPrinting\PrettyPrinting.gdbinit
Error message from debugger back end:
C:\PythonPrettyPrinting\PrettyPrinting.gdbinit:6: Error in sourced command file:
Error while executing Python code.
C:\PythonPrettyPrinting\PrettyPrinting.gdbinit:6: Error in sourced command file:
Error while executing Python code.


If anyone can help, I'd appreciate it.
Re: Noob question regarding STL debug [message #743188 is a reply to message #743019] Fri, 21 October 2011 03:56 Go to previous messageGo to next message
Eclipse UserFriend
Can you post your gdbinit file? I have the following:

python
import sys
sys.path.insert(0, '/path/to/stl_printers_gdb.py')
from stl_printers_gdb import register_libstdcxx_printers
register_libstdcxx_printers (None)
end

set print pretty 1
Re: Noob question regarding STL debug [message #744409 is a reply to message #743188] Sat, 22 October 2011 00:33 Go to previous messageGo to next message
Eclipse UserFriend
python
import sys
sys.path.insert(0, 'C:\PythonPrettyPrinting\printers.py')
from printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
Re: Noob question regarding STL debug [message #749490 is a reply to message #744409] Tue, 25 October 2011 04:47 Go to previous messageGo to next message
Eclipse UserFriend
I am not sure if you can use Windows style paths. I think you have to use slashes "/".
Re: Noob question regarding STL debug [message #1428261 is a reply to message #743019] Sun, 21 September 2014 10:54 Go to previous messageGo to next message
Eclipse UserFriend
There's literally 15 people having this issue and no one has it resolved

I'm having the same issue

when is cdt going to fix this crap and make it easier
Re: Noob question regarding STL debug [message #1428268 is a reply to message #1428261] Sun, 21 September 2014 11:01 Go to previous message
Eclipse UserFriend
Apparently you have to convert the script from 2to3 but there's errors doing that.
This sucks. CDT get it together. You need to make this easy and it should be done by default. UGH.
Previous Topic:New Makefile project (C)
Next Topic:Configuring IDE for C++11 development
Goto Forum:
  


Current Time: Mon Jun 16 01:04:24 EDT 2025

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

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

Back to the top