From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3631 invoked by alias); 5 Feb 2003 18:46:01 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3624 invoked from network); 5 Feb 2003 18:46:00 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 5 Feb 2003 18:46:00 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 31CEF3CB5; Wed, 5 Feb 2003 13:45:56 -0500 (EST) Message-ID: <3E415BE4.6070809@redhat.com> Date: Wed, 05 Feb 2003 18:46:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Warkentin Cc: gdb-patches@sources.redhat.com Subject: Re: patch to add QNX NTO i386 support References: <1c3601c2cbc1$72eac3b0$0202040a@catdog> <3E40387D.50001@redhat.com> <1daf01c2cd3a$0c6e2ee0$0202040a@catdog> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00194.txt.bz2 >> > * ser-ntopty.c: New file > >> >> Hmm, is this specific to nto? Also, glancing through the code, how >> different is this to the existing serial code. I'm wondering if the >> file exists due to local fixes and not because it is needed. > > > It took me a few minutes to remember what this was. When we originally > ported gdb, the only way it worked was using the remote pdebug protocol, > even on the local machine (we had no native procfs port). So, you would > issue a command 'target qnx pty' (instead of 'target qnx ' or > 'target qnx ':') and it would automatically spawn the pdebug > server on a pty and connect to it. Since we've got a native procfs port > working, this is by and large redundant so I'll take it out. It was only > there for legacy support and because it was sometimes useful to compare the > procfs vs. the pdebug to make sure things are working. Since the equivalent > can be accomplished with 'target qnx localhost:', I think it's time > for ser-ntopty.c to die. Ah. There is also now ser-pipe.c vis: (gdb) target remote |program A `ser-pty' might also be useful but that isn't specific to nto. I've no idea on the syntax (... pty:...). Andrew