From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: Kevin Pouget <kevin.pouget@gmail.com>, gdb@sourceware.org
Subject: Re: Python and target-async
Date: Tue, 30 Aug 2011 15:54:00 -0000 [thread overview]
Message-ID: <20110830155404.GA16580@host1.jankratochvil.net> (raw)
In-Reply-To: <201108301413.39143.pedro@codesourcery.com>
On Tue, 30 Aug 2011 15:13:38 +0200, Pedro Alves wrote:
> --- src.orig/gdb/inf-loop.c 2011-08-30 11:29:09.000000000 +0100
> +++ src/gdb/inf-loop.c 2011-08-30 13:46:43.375339554 +0100
[...]
> @@ -109,17 +110,22 @@ inferior_event_handler (enum inferior_ev
> else
> do_all_continuations (0);
>
> - if (info_verbose
> - && current_language != expected_language
> - && language_mode == language_mode_auto)
> - language_info (1); /* Print what changed. */
> -
> - /* Don't propagate breakpoint commands errors. Either we're
> - stopping or some command resumes the inferior. The user will
> - be informed. */
> - TRY_CATCH (e, RETURN_MASK_ALL)
> + /* When running a command list (from a user command, say), these
> + are only run when the command list is all done. */
> + if (interpreter_async)
> {
> - bpstat_do_actions ();
> + if (info_verbose
> + && current_language != expected_language
> + && language_mode == language_mode_auto)
> + language_info (1); /* Print what changed. */
> +
> + /* Don't propagate breakpoint commands errors. Either we're
> + stopping or some command resumes the inferior. The user will
> + be informed. */
> + TRY_CATCH (e, RETURN_MASK_ALL)
> + {
> + bpstat_do_actions ();
> + }
> }
> exception_print (gdb_stderr, e);
>
It works great except for this mis-merged part of the recent change by me.
Thanks,
Jan
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -126,8 +126,8 @@ inferior_event_handler (enum inferior_event_type event_type,
{
bpstat_do_actions ();
}
+ exception_print (gdb_stderr, e);
}
- exception_print (gdb_stderr, e);
if (!was_sync
&& exec_done_display_p
next prev parent reply other threads:[~2011-08-30 15:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-31 13:52 Kevin Pouget
2011-05-31 17:44 ` Pedro Alves
2011-05-31 17:54 ` Kevin Pouget
2011-06-02 13:28 ` Pedro Alves
2011-08-17 11:37 ` Kevin Pouget
2011-08-17 12:26 ` Pedro Alves
2011-08-17 13:17 ` Kevin Pouget
2011-08-19 13:35 ` Kevin Pouget
2011-08-30 13:14 ` Pedro Alves
2011-08-30 15:54 ` Jan Kratochvil [this message]
2011-09-02 17:13 ` Pedro Alves
2011-09-05 15:54 ` Pedro Alves
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=20110830155404.GA16580@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=kevin.pouget@gmail.com \
--cc=pedro@codesourcery.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