From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27301 invoked by alias); 28 Jun 2002 22:49:00 -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 27293 invoked from network); 28 Jun 2002 22:48:58 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 28 Jun 2002 22:48:58 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B91F03C2B; Fri, 28 Jun 2002 18:48:57 -0400 (EDT) Message-ID: <3D1CE7D9.4050607@ges.redhat.com> Date: Fri, 28 Jun 2002 15:49:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020613 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "KONG, Gangfeng" Cc: gdb@sources.redhat.com Subject: Re: Remote target behind console server References: <5.1.0.14.1.20020627175723.02b2b050@mailhost.iprg.nokia.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00320.txt.bz2 > 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. enjoy, Andrew