This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: debugging programs that use stl containers


OYeah, it's slightly flaky. I've got it goin fine on the new abi, except
on objects  that have multiple shared virtual baseclasses.

YOu also *should* be able to do p my_vector[0], p my_map["fred"], etc,
just not with STABS. The typing on stabs is too wrong because we have to
parse them.


On Mon, 2 Apr 2001, Benjamin Kosnik wrote:

>
> not really. You can do
>
> (gdb) ptype my_vector
>
> to see what gdb thinks of the type, and
>
> (gdb) p my_vector
>
> to see the internals of the object. This is supposed to work, but in my
> experience is a bit flaky.
>
> -benjamin
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]