From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19677 invoked by alias); 10 Jan 2002 18:27:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 19650 invoked from network); 10 Jan 2002 18:27:03 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 10 Jan 2002 18:27:03 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id NAA15850 for ; Thu, 10 Jan 2002 13:25:01 -0500 Received: from node128.ott.qnx.com (node128 [10.0.0.128]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id NAA28943 for ; Thu, 10 Jan 2002 13:29:28 -0500 Received: by node128.ott.qnx.com (8.9.3/8.9.3) id NAA423637035 for gdb@sources.redhat.com; Thu, 10 Jan 2002 13:27:20 -0500 Message-Id: <200201101827.NAA423637035@node128.ott.qnx.com> Subject: remote stdio To: gdb@sources.redhat.com Date: Thu, 10 Jan 2002 10:27:00 -0000 From: "Graeme Peterson" X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00099.txt.bz2 Hi, all. I have a remote stub working for QNX's remote debug server. The server manages stdin, out and err, however I am having trouble finding out how GDB shares the text console's stdin for a remote target. When the inferior is given free reign to run, and GDB winds up waiting for ever, what mechanisms exist to allow any subsequent keyboard input to be captured and sent to the remote target? Basically, I want to respond to a getch() in the inferior, or run a 'vi' session in DDD's execution window via the remote target connection. What I have done so far is added the stdin fd to the fd set for the select() in ser_unix_wait_for (gdb/ser-unix.c). This works fine for TCP/IP connections, but the code path is not executed for serial connections. I would also prefer not to modify the generic GDB source files if a mechanism exists that I can take advantage of. Anyone? Thanks. Graeme Peterson (aka GP).