strange vector behavior w/ operator[]

2000-08-04 Thread John Hunter
I am experiencing what seems to me to be unusual behavior with the STL vector class in gdb. In the code below, when v is passed by const reference in the Bar example, I can access the values of the vector with the [] operator under gdb. When I pass by value in the Foo example, I cannot seem to a

Re: strange vector behavior w/ operator[]

2000-08-04 Thread John Hunter
compiling with -ggdb fixed all the strangeness described in my original post. John Hunter

Re: strange vector behavior w/ operator[]

2000-08-04 Thread Daniel Berlin
[EMAIL PROTECTED] (John Hunter) writes: The reason is becuse -ggdb was turning on dwarf-2, which is much better for C++. The problems that occur when debugging with STABS, which is the default, will not be fixed by me, and i'm the C++ maintainer for GDB. STABS is not good for C++ at all, it req