From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2980 invoked by alias); 30 Aug 2011 15:54:31 -0000 Received: (qmail 2967 invoked by uid 22791); 30 Aug 2011 15:54:28 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Aug 2011 15:54:15 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p7UFs8p2005981 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 30 Aug 2011 11:54:08 -0400 Received: from host1.jankratochvil.net (ovpn-116-38.ams2.redhat.com [10.36.116.38]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p7UFs6dY018517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Aug 2011 11:54:07 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p7UFs5Zb008700; Tue, 30 Aug 2011 17:54:05 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p7UFs4eP008695; Tue, 30 Aug 2011 17:54:04 +0200 Date: Tue, 30 Aug 2011 15:54:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: Kevin Pouget , gdb@sourceware.org Subject: Re: Python and target-async Message-ID: <20110830155404.GA16580@host1.jankratochvil.net> References: <201108301413.39143.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201108301413.39143.pedro@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00127.txt.bz2 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