From: Daniel Jacobowitz <drow@false.org>
To: "William K. Foster" <wkf@sinavigator.com>
Cc: gdb@sourceware.org
Subject: Re: How to pop -c in gdb
Date: Wed, 10 Jan 2007 02:51:00 -0000 [thread overview]
Message-ID: <20070110025125.GA13537@nevyn.them.org> (raw)
In-Reply-To: <45A43875.4020808@sinavigator.com>
On Tue, Jan 09, 2007 at 04:51:01PM -0800, William K. Foster wrote:
> Hello,
>
> When I used dbx and at the prompt called a function which got a SEGV or
> something, I could do "pop -c" to recover from my call and return to the
> point I was at in the program being debugged where I typed in the
> expression that failed.
> Program received signal SIGSEGV, Segmentation fault.
> 0x42d05bda in QWidgetPrivate::q_func (this=0x0) at qwidget_p.h:157
> 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 (QWidget::x()
> const) will be abandoned.
As the message suggests, if unwindonsignal is set, you won't run into
this problem. However, once you do, there's no easy way out yet.
This might work though: instead of "fin", try "signal 0" to resume,
and then the application should resume running. Or try "handle SIGSEGV
nopass" and then finish should work.
I think. I haven't tried it lately.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-01-10 2:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-10 0:51 William K. Foster
2007-01-10 2:51 ` Daniel Jacobowitz [this message]
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=20070110025125.GA13537@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=wkf@sinavigator.com \
/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