This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

question about SIGTRAP


hi.when I print a vector element using operator [ ],gdb show me this :

       Program received signal SIGTRAP, Trace/breakpoint trap.
0x08048a0b in std::vector<int, std::allocator<int> >::operator[]
(this=0xbfffde70, __n=0) at
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/bits/stl_vector.h:479
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
(std::vector<int, std::allocator<int> >::operator[](unsigned int))
will be abandoned.
When the function is done executing, GDB will silently stop.


then it is trapped into the stl library,and I can not go out .

how can I deal with this?


thank you
!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]