[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gdb and iterators
From: |
glen_stark |
Subject: |
gdb and iterators |
Date: |
Mon, 10 May 2004 12:52:15 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 |
Hi.
I hope I'm posting in the correct forum. I'm debugging some code using
iterators, and having trouble getting info on where the iterator is
pointing to, and what.
i get:
1: spli = (t_shapePtrListIter &) @0x226b00: {<_List_iterator_base> = {
_M_node = 0xa042980}, <No data fields>}
When I type "print spli"
and
Attempt to take contents of a non-pointer value.
for "print *spli". spli should be an list iterator pointing to pointer
to a Shape (my own class). Can someone tell me what's going on? is
there a trick to getting iterator info?
thanks,
Glen
- gdb and iterators,
glen_stark <=