Hi,

I've been trying to examine the values stored inside template containers from
within gdb, without much success. For example, when I try to look at vec[0],
to see the value stored in vector <myClass *> vec, I get 

Program received signal SIGSEGV, Segmentation fault.
<function called from gdb>
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (vector<StructuralNode *, 
allocator<StructuralNode *> >::operator[](unsigned int) const) will be abandoned.

'set unwindonsignal off' doesn't help much, it simply returns from the frame
where the signal was received.

Any idea how I can get it to print the right value? I'm using gdb 5.0

thanks,

Srirang

_______________________________________________
Bug-gdb mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gdb

Reply via email to