From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25005 invoked by alias); 22 Jul 2016 10:01:52 -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 24974 invoked by uid 89); 22 Jul 2016 10:01:51 -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= X-HELO: mail-oi0-f50.google.com Received: from mail-oi0-f50.google.com (HELO mail-oi0-f50.google.com) (209.85.218.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 22 Jul 2016 10:01:41 +0000 Received: by mail-oi0-f50.google.com with SMTP id l72so156100423oig.2 for ; Fri, 22 Jul 2016 03:01:41 -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=8EyYap7vAQJPrrzMJEaMBCyX9j+Kt+o0VJJe15cwZ8I=; b=SZB8ZdekmKX1Ftm2OcTpIQ8Jxm05BrPE4JZxeWcXs7iqkFWxQ6uYM2Z5OEtHSNJD0x YqOKnWyqMa/PN38Z74/KHoVjunRo1zT80/ygwQsVbdoKImOnkQxHCynmbOs58ke0GT2I 5ZUNCov3UQ1EXnC2mCy6DiNQEOcGXPG+W3bfNeArPw/KKx8GXsTmhUzBVI5HXA4OnboD kAR9C1Ll6Vj/m0afBTGfNviJSzH/0QUUxBffLkkkKtyxLATZNF6UXYZf05nmB/5I0Z+g V5zcCe5tOAyFkWCzVVjkQTYERANsZAVXuksa5AB+I2owxExDzbAzKxa4lp99xETFUk6o QGPg== X-Gm-Message-State: AEkoouuVsyC59UrwcpVNNdL6KdCtPWnzYSpDFtmrMG33gaJEdMjXrGukOZjXWS+k/Pzn888T8Lifm706HHF+XA== X-Received: by 10.202.197.66 with SMTP id v63mr1491007oif.131.1469181699337; Fri, 22 Jul 2016 03:01:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.105.138 with HTTP; Fri, 22 Jul 2016 03:01:38 -0700 (PDT) In-Reply-To: <1463806850-11001-1-git-send-email-tom@tromey.com> References: <1463806850-11001-1-git-send-email-tom@tromey.com> From: Yao Qi Date: Fri, 22 Jul 2016 10:01:00 -0000 Message-ID: Subject: Re: [RFA] PR python/13598 - add before_prompt event To: Tom Tromey Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00285.txt.bz2 Hi Tom, On Sat, May 21, 2016 at 6:00 AM, Tom Tromey wrote: > This adds an event that is emitted just before GDB presents a prompt > to the user. This provides Python code a way to react to whatever > changes might have been made by the previous command. For example, in > my GUI I use this to track changes to the selected frame and reflect > them in the UI. I read this patch multiple times, but don't know the motivation of adding t= his event. In PR python/13598, you mentioned you want to get event when something is changed. If so, why don't you add the python event for the ch= anges you are interested in? What is your use case of using python code in GDB? --=20 Yao (=E9=BD=90=E5=B0=A7)