From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19791 invoked by alias); 10 Jun 2008 01:40:37 -0000 Received: (qmail 19783 invoked by uid 22791); 10 Jun 2008 01:40:37 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 10 Jun 2008 01:40:00 +0000 Received: from kahikatea.snap.net.nz (215.60.255.123.dynamic.snap.net.nz [123.255.60.215]) by viper.snap.net.nz (Postfix) with ESMTP id BCDE03DA223; Tue, 10 Jun 2008 13:39:56 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id E874B8FC6D; Tue, 10 Jun 2008 13:39:42 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18509.56150.132277.869905@kahikatea.snap.net.nz> Date: Tue, 10 Jun 2008 02:20:00 -0000 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH:MI] Event notification In-Reply-To: <20080501185728.GE22218@caradoc.them.org> References: <18439.56134.456709.118980@kahikatea.snap.net.nz> <20080501185728.GE22218@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00183.txt.bz2 > ... I > think that the frame changed observer will fire too often; > select_frame is often used with cleanups to temporarily select another > frame. How about conditioning it so that it only fires when the target isn't running, e.g., with the up, down, frame, -stack-select-frame etc commands? Something like: if (!target_can_async_p () && !target_executing) observer_notify_frame_changed (); which I realise isn't right because target_executing is for async mode. In synchronous mode, is there a way to distinguish between the target stopping normally and stopping while GDB executes? -- Nick http://www.inet.net.nz/~nickrob