From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11621 invoked by alias); 28 Apr 2011 13:40:14 -0000 Received: (qmail 11611 invoked by uid 22791); 28 Apr 2011 13:40:13 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_PD,T_TO_NO_BRKTS_FREEMAIL 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; Thu, 28 Apr 2011 13:39:58 +0000 Received: by vws4 with SMTP id 4so2655351vws.0 for ; Thu, 28 Apr 2011 06:39:57 -0700 (PDT) Received: by 10.220.193.69 with SMTP id dt5mr1016588vcb.93.1303997997037; Thu, 28 Apr 2011 06:39:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.61.6 with HTTP; Thu, 28 Apr 2011 06:39:37 -0700 (PDT) In-Reply-To: References: From: Kevin Pouget Date: Thu, 28 Apr 2011 13:40:00 -0000 Message-ID: Subject: Re: [patch] [python] python/12686 To: gdb-patches@sourceware.org Cc: Tom Tromey , pmuldoon@redhat.com 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/msg00540.txt.bz2 one thing I just noticed, python debugging ("import pdb ; pdb.set_trace()") faces the same SIGTTIN problem ... On Mon, Apr 25, 2011 at 3:28 PM, Tom Tromey wrote: >>>>>> "Kevin" =3D=3D Kevin Pouget writes: > > Tom> =A0TBH I think asking the user questions here is weird. > > Kevin> I'm not sure about the right way to do, I haven't had time to cons= ider > Kevin> your suggestion on the main mailing list, but if you consider the > Kevin> situation where you want to ask the user (from Python) if s/he wan= ts > Kevin> to stop the inferior. > > I would suggest simply not asking. > > Kevin> Currently, one way would be to do it here, the other would be in t= he > Kevin> "stop" event handler, with `gdb.execute("continue")', but I don't > Kevin> really like this solution, being under a Python callstack during t= he > Kevin> execution seems a bit strange, doesn't it ? > > Yeah, if you are committed to asking, then I agree about the placement > of the query. > > Tom >