From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28413 invoked by alias); 29 Jun 2002 00:51:02 -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 28404 invoked from network); 29 Jun 2002 00:51:01 -0000 Received: from unknown (HELO TheWorld.com) (199.172.62.103) by sources.redhat.com with SMTP; 29 Jun 2002 00:51:01 -0000 Received: from shell.TheWorld.com (root@shell01.TheWorld.com [199.172.62.241]) by TheWorld.com (8.9.3/8.9.3) with ESMTP id UAA15058; Fri, 28 Jun 2002 20:51:00 -0400 Received: from localhost (qqi@localhost) by shell.TheWorld.com (8.9.3/8.9.3) with ESMTP id UAA3549392; Fri, 28 Jun 2002 20:51:00 -0400 (EDT) X-Authentication-Warning: shell01.TheWorld.com: qqi owned process doing -bs Date: Fri, 28 Jun 2002 17:51:00 -0000 From: Quality Quorum To: Andrew Cagney cc: "KONG, Gangfeng" , Subject: Re: Remote target behind console server In-Reply-To: <3D1CE7D9.4050607@ges.redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-06/txt/msg00322.txt.bz2 On Fri, 28 Jun 2002, Andrew Cagney wrote: > > Hi, > > > > I have a target sitting behind a console server. I can use any box to > > telnet to the console server and access the console port of my target. This target > > runs Linux kgdb stub on it. I have tested with serial cable, for my gdb host to > > debug the kgdb target, everything is perfect. But in our situation, we must debug > > our target remotely through console server. > > > > The question is whether it's feasible for gdb to remote debug this target through > > console server, which is a telnet / serial converter? > > You mean an ``annex[tm]''? Yes. You'll likely need to tweak things so > that the terminal server automatically connects the GDB session through > to the serial port. There isn't an easy way, from GDB, to send terminal > server commands. You have to configure your terminal server appropriately (either enable 'raw' mode on the terminal server or disable 'X' command on the stub/gdb) and this is basically it, people do it all the time. If you are going to do 'load' over this connection big terminal server buffers may screw it up. > > enjoy, > Andrew > > Thanks, Aleksey