From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3427 invoked by alias); 19 Apr 2011 21:30:08 -0000 Received: (qmail 3417 invoked by uid 22791); 19 Apr 2011 21:30:07 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Apr 2011 21:29:48 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3JLThCK002027 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 19 Apr 2011 17:29:43 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3JLTfjx002625; Tue, 19 Apr 2011 17:29:42 -0400 From: Phil Muldoon To: Andreas Schwab Cc: Kevin Pouget , gdb@sourceware.org Subject: Re: [Python] Input from user from extended breakpoint `stop' function References: Reply-to: pmuldoon@redhat.com X-URL: http://www.redhat.com Date: Tue, 19 Apr 2011 21:30:00 -0000 In-Reply-To: (Andreas Schwab's message of "Tue, 19 Apr 2011 22:43:44 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00104.txt.bz2 Andreas Schwab writes: > Phil Muldoon writes: > >> I'm not sure what is going on here. It seems GDB is not acting >> correctly with the SIGTTIN. I really do not know this area of GDB at >> all. > > The terminal still belongs to the inferior. Before gdb is doing any > input it must call terminal_ours. Thanks, that is good info. I did not know that. I wonder if we should call that before handing over control to the python executed script in the breakpoint "stop" callback? Or maybe provide a Python API call to turn control of the TTY to GDB and likewise to the inferior. Any opinions on this would be great. What do you (all) think? Cheers Phil