debugging programs that use stl containers

Daniel Berlin dan@www.cgsoftware.com
Mon Apr 2 16:19:00 GMT 2001


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
>



More information about the Libstdc++ mailing list