Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Display std::vector as array
Display std::vector as array [message #231280] Fri, 06 March 2009 19:31
Siegfried Walz is currently offline Siegfried WalzFriend
Messages: 1
Registered: July 2009
Junior Member
I'm using MinGW, gdb 6.6 and the 3.4-SR2 bundle of Eclipse/CDT.
My previous version of Eclipse/CDT bundle was able to look into
std::vector by "display as array".
This version visualizes the following message:
"Attempt to take address on non-lval".
I activated the console and saw differences in gdb commands. The
previous version analyzed the vector by gdb's commands "whatis" and
"ptype".

Can anyone give advice, please ?
------
Sample code to reproduce:

#include <stdio.h>
#include <stdlib.h>
#include <vector>

int main(void) {
std::vector<int> v;
v.push_back(123);
v.push_back(234);

return EXIT_SUCCESS; // <- set breakpoint here
}
Previous Topic:Re: Cross debugging
Next Topic:CDT astvisitor
Goto Forum:
  


Current Time: Sat Nov 09 03:22:45 GMT 2024

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

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

Back to the top