Display std::vector as array [message #231280] |
Fri, 06 March 2009 19:31 |
Siegfried Walz 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
}
|
|
|
Powered by
FUDForum. Page generated in 0.02723 seconds