From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42113 invoked by alias); 3 Aug 2016 08:33:37 -0000 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 Received: (qmail 42100 invoked by uid 89); 3 Aug 2016 08:33:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=handed X-HELO: mail-oi0-f42.google.com Received: from mail-oi0-f42.google.com (HELO mail-oi0-f42.google.com) (209.85.218.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 03 Aug 2016 08:33:26 +0000 Received: by mail-oi0-f42.google.com with SMTP id w18so271269220oiw.3 for ; Wed, 03 Aug 2016 01:33:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UdyqGOM243yyzJHcMImTPdCu82m4Rgc4NNyhQeedBR8=; b=SA7GVCik/uAjMVo4coif3FwfpiGNkQEkZip4Fg3zitbNDaqDbB9E9eG8WGZ5XnU+k3 RDE76SiKv4iwalBiHoZ6yEL3s+u5D0jpYQre2yytixZDoQ38TEPGJzUWypwf7wcQHd3n WbfdgkiZRBLVo2YFR9OqoojCUNOAxlXoNIWABJR05U1ALcCmiTae0zsUuDarJdFldx+9 4GXyMBBaVS+sAwD7d0xy+zEMd4wO+PDExZtl1x2r0Hjz1i7BT98gbHG2bEPHdsfT+Vv8 0ubpRwMqCiulu2UE5q+Vsb7pWYtsIQ3qIYRxQkJI/aZBkd5bp5UeZxep11BWC4tnWths v63Q== X-Gm-Message-State: AEkooutIrYoagCuMF71QxL6/nLzKNwXzwHpAwFbwrNVt/s6sUZz2q12vZ8BVJxF+aoLbiZDPhdusHAdXL3yVTQ== X-Received: by 10.157.17.227 with SMTP id y32mr38904112oty.101.1470213204426; Wed, 03 Aug 2016 01:33:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.172.75 with HTTP; Wed, 3 Aug 2016 01:33:23 -0700 (PDT) In-Reply-To: <87r3allziy.fsf@tromey.com> References: <1463806850-11001-1-git-send-email-tom@tromey.com> <87r3allziy.fsf@tromey.com> From: Yao Qi Date: Wed, 03 Aug 2016 08:33:00 -0000 Message-ID: Subject: Re: [RFA] PR python/13598 - add before_prompt event To: Tom Tromey Cc: Matt Rice , "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00049.txt.bz2 On Sat, Jul 23, 2016 at 6:00 AM, Tom Tromey wrote: >>>>>> "Matt" =3D=3D Matt Rice writes: > > Matt> In particular it's just a nice time to take a snapshot of some > Matt> otherwise obtainable property from gdb right before control is hand= ed > Matt> back to the user. > > Yes, this is exactly why I added this. > > My original motivation was to get a notification when the selected frame > changed. However, this happens a lot, sometimes temporarily. And, I > wasn't interested in temporary frame changes -- just "final" changes, > such as just after a command has completed and just before the prompt is > displayed... which led to this approach. If you are interested in changes in selected frames, we can add a python ev= ent selected_frame_changed. However, as a python api, the event should be general enough, IOW, your tool isn't interested in temporary frame changes, but other python users may be interested in _all_ selected frame changes. --=20 Yao (=E9=BD=90=E5=B0=A7)