From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org, tromey@redhat.com
Subject: Re: RFC: finish_command_continuation and errors
Date: Thu, 18 Mar 2010 17:35:00 -0000 [thread overview]
Message-ID: <201003181728.30450.pedro@codesourcery.com> (raw)
In-Reply-To: <m3bpel36f9.fsf@fleche.redhat.com>
On Thursday 18 March 2010 17:07:06, Tom Tromey wrote:
> This can happen if gdb calls error while printing the return value.
For the record, can you show us which error was that?
> In this case, the finish breakpoint is never deleted.
>
> This patch fixes the problem by wrapping the call to print_return_value
> in a TRY_CATCH. Other fixes are possible, but I chose this one because
> it is small and occurs at the point in the code that must be
> exception-safe.
>
> Built and regtested on x86-64 (compile farm).
> I also tried it again on my test case, provoked the error, and used
> "maint info b" to verify that the finish breakpoint was deleted.
This probably also fixes frontends: the normal_stop observers notification
call just a bit below was skipped too, which means the MI *stopped
notification must have gone missing; a frontend was being left with no
idea the thread had stopped. Could you check with your test, but running
with -i=mi, that mi_on_normal_stop also isn't throwing an exception too
in your case? I suspect not, but just in case. You can issue the normal
CLI commands while in -i=mi to test this.
> 2010-03-18 Tom Tromey <tromey@redhat.com>
>
> * infcmd.c (finish_command_continuation): Wrap print_return_value
> in TRY_CATCH.
Okay. Thanks.
--
Pedro Alves
next prev parent reply other threads:[~2010-03-18 17:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-18 17:07 Tom Tromey
2010-03-18 17:35 ` Pedro Alves [this message]
2010-03-18 17:59 ` Tom Tromey
2010-03-18 18:08 ` Joel Brobecker
2010-03-18 18:14 ` Pedro Alves
2010-03-18 18:22 ` Tom Tromey
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=201003181728.30450.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.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