From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11749 invoked by alias); 15 Oct 2005 12:27:14 -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 11739 invoked by uid 22791); 15 Oct 2005 12:27:10 -0000 Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 15 Oct 2005 12:27:10 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-202-172.inter.net.il [83.130.202.172]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CSA07231 (AUTH halo1); Sat, 15 Oct 2005 14:27:02 +0200 (IST) Date: Sat, 15 Oct 2005 12:27:00 -0000 Message-Id: From: Eli Zaretskii To: "jingzhao.ou" , gdb@sources.redhat.com In-reply-to: <20051009123326.GA436@white> (message from Bob Rossi on Sun, 9 Oct 2005 08:33:26 -0400) Subject: Re: Separating "shell dir" output from GDB/MI output Reply-to: Eli Zaretskii References: <20051009123326.GA436@white> X-SW-Source: 2005-10/txt/msg00090.txt.bz2 > Date: Sun, 9 Oct 2005 08:33:26 -0400 > From: Bob Rossi > Cc: gdb@sources.redhat.com > > I think the best idea we've had so far for solving problems like this is > to add an option to GDB to have it output GDB/MI data on a file > descriptor X. For instance, > gdb -i=mi -mi-out-fd=30 > and then when you fork/exec GDB you dup the 30 file descriptor so that > you can read the output. > > Eli, do you know if this approach would be portable to windows nativly? dup works on Windows as it does on Posix platforms, but I'm not sure I understand the other details of what you suggest. Could you post a pseudo-code description of what you have in mind?