LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-11-2007, 09:40 AM   #1
santana
Member
 
Registered: Sep 2004
Distribution: FC, ubuntu, OpenSuse
Posts: 112

Rep: Reputation: 16
Debugging c++ STL...


Hi, does any one know of a debugger IDE that gracefully handles STL containers? Perfect example: vector<string>?? Typically one can expect something along the lines of the following being put into a tree view:

Code:
(gdb) print this->levels
$2 = {
  _vptr.Vector = 0x56cb70,
  v = {
    <std::_Vector_base<Vector<Box>,std::allocator<Vector<Box> > >> = {
      _M_impl = {
        <std::allocator<Vector<Box> >> = {
          <__gnu_cxx::new_allocator<Vector<Box> >> = {<No data fields>}, <No data fields>},
        members of std::_Vector_base<Vector<Box>,std::allocator<Vector<Box> > >::_Vector_impl:
        _M_start = 0x7ed4c0,
        _M_finish = 0x7ed500,
        _M_end_of_storage = 0x7ed500
      }
    }, <No data fields>}
}
But you don't actually get easy access to vector elements, apparently just to the iterators. Now knwoing gdb, I am sure there is some convoluted way of actually using the iterators to get at the vector elements, but the point is to have a smart ide to make it happen. It seem like STL is such an intrinsic part of daily grind that more support would be there.
 
Old 10-12-2007, 06:39 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
I would like to know this too.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello from STL oakleyd LinuxQuestions.org Member Intro 1 12-15-2006 11:03 PM
STL online help available ? carcassonne Programming 3 07-12-2006 05:49 PM
Difference between kernel - debugging and application debugging topworld Linux - Software 2 03-30-2006 12:50 AM
Visual Debugging and Linux Kernel Debugging Igor007 Programming 0 09-30-2005 10:33 AM
c++ and stl G67 Programming 4 12-17-2003 02:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration