public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: John Smith <juniorstuding@gmail.com>
To: gdb@sourceware.org
Subject: question about SIGTRAP
Date: Thu, 02 Aug 2012 01:32:00 -0000	[thread overview]
Message-ID: <CAEfwa-8WfZV-51NX8+u46ShpQu_mYJy9rHxic=P4n36L_0kskg@mail.gmail.com> (raw)

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
!

             reply	other threads:[~2012-08-02  1:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02  1:32 John Smith [this message]
2012-08-04 19:17 ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEfwa-8WfZV-51NX8+u46ShpQu_mYJy9rHxic=P4n36L_0kskg@mail.gmail.com' \
    --to=juniorstuding@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).