bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c++ template values in gdb


From: Srirang K. Karandikar
Subject: c++ template values in gdb
Date: 21 Nov 2000 17:39:32 GMT
User-agent: slrn/0.9.6.2 (Win32)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]