From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1241 invoked by alias); 20 Apr 2011 20:10:10 -0000 Received: (qmail 1230 invoked by uid 22791); 20 Apr 2011 20:10:09 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-vw0-f41.google.com (HELO mail-vw0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Apr 2011 20:09:55 +0000 Received: by vws4 with SMTP id 4so1157916vws.0 for ; Wed, 20 Apr 2011 13:09:52 -0700 (PDT) Received: by 10.52.108.136 with SMTP id hk8mr308665vdb.28.1303330192241; Wed, 20 Apr 2011 13:09:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.61.6 with HTTP; Wed, 20 Apr 2011 13:09:32 -0700 (PDT) In-Reply-To: References: From: Kevin Pouget Date: Wed, 20 Apr 2011 20:10:00 -0000 Message-ID: Subject: Re: [patch] [python] python/12686 To: Tom Tromey Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2011-04/txt/msg00374.txt.bz2 > =A0TBH I think asking the user questions here is weird. I'm not sure about the right way to do, I haven't had time to consider your suggestion on the main mailing list, but if you consider the situation where you want to ask the user (from Python) if s/he wants to stop the inferior. Currently, one way would be to do it here, the other would be in the "stop" event handler, with `gdb.execute("continue")', but I don't really like this solution, being under a Python callstack during the execution seems a bit strange, doesn't it ? Cordially, Kevin