From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18202 invoked by alias); 31 Aug 2009 23:11:40 -0000 Received: (qmail 18194 invoked by uid 22791); 31 Aug 2009 23:11:40 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1-old.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 31 Aug 2009 23:11:36 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com ([10.11.47.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7VNBXq3027984 for ; Mon, 31 Aug 2009 19:11:33 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n7VNBWwl014156; Mon, 31 Aug 2009 19:11:32 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n7VNBVdn028752; Mon, 31 Aug 2009 19:11:31 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 22B153781AF; Mon, 31 Aug 2009 17:11:31 -0600 (MDT) From: Tom Tromey To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: =frame-selected MI notification References: <87iqg99xb5.fsf@sphinx.net.ru> Reply-To: tromey@redhat.com Date: Mon, 31 Aug 2009 23:19:00 -0000 In-Reply-To: (Vladimir Prus's message of "Fri, 28 Aug 2009 10:16:16 +0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-08/txt/msg00599.txt.bz2 >>>>> "Volodya" == Vladimir Prus writes: Volodya> Furthermore, I do not think that observers for either thread or Volodya> frame changes is good idea, design wise. The fact that gdb has Volodya> current thread or current frame at the code level, is, IMNSHO, Volodya> a design bug. I agree, for the core. But, the problem in question concerns notification about the changes to the user's view. E.g., it wouldn't be unreasonable to want to write a Python script that reacts to changes in the CLI's notion of frame. In this case, such an observer would be useful and appropriate. Tom