This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: debugging programs that use stl containers
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: debugging programs that use stl containers
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Mon, 2 Apr 2001 19:19:42 -0400 (EDT)
- cc: "Craveiro, Marco" <Marco dot Craveiro at solvay dot com>, "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
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
>