From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20792 invoked by alias); 24 Sep 2005 00:36:18 -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 20689 invoked by uid 22791); 24 Sep 2005 00:36:06 -0000 Received: from 63-207-7-10.ded.pacbell.net (HELO cassini.c2micro.com) (63.207.7.10) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 24 Sep 2005 00:36:06 +0000 Received: from YURI (unknown [192.168.10.238]) by cassini.c2micro.com (Postfix) with ESMTP id D202FB8001; Fri, 23 Sep 2005 17:36:02 -0700 (PDT) From: "Yuri Karlsbrun" To: "'Daniel Jacobowitz'" Cc: Subject: RE: Multiplexing gdb remote protocol and application output Date: Sat, 24 Sep 2005 00:36:00 -0000 In-Reply-To: <20050921025532.GA5927@nevyn.them.org> Message-Id: <20050924003602.D202FB8001@cassini.c2micro.com> X-SW-Source: 2005-09/txt/msg00177.txt.bz2 Hi, As an exercise, I restored 'target cisco' in gdb-6.3 (used code from gdb-5.0). It was not difficult. Then I found in the GDB manual "File I/O remote protocol extension". The idea of this protocol extension is pretty much the same as Cisco hack: guard application input/output, but the implementation is much more flexible. I wonder, why nobody mentioned extended file IO. Yuri > > Older gdb versions supported 'target cisco'. Function readsocket() > allowed > > to distinct between application output and remote communication protocol > > packets, using escape sequence. > > > > Now 'target cisco' support removed from gdb distribution. Is there any > > standard way in gdb to multiplex remote protocol and application > > input/output? > > Not really, but there's at least one tool that can do this, called kdmx > (specific to Linux but I believe it ought to be fairly portable). > > I'm afraid that's all I know about the subject though. > > -- > Daniel Jacobowitz > CodeSourcery, LLC