From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11842 invoked by alias); 3 Jul 2002 03:05:28 -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 11773 invoked from network); 3 Jul 2002 03:05:27 -0000 Received: from unknown (HELO mailhost.iprg.nokia.com) (205.226.5.12) by sources.redhat.com with SMTP; 3 Jul 2002 03:05:27 -0000 Received: from darkstar.iprg.nokia.com (darkstar.iprg.nokia.com [205.226.5.69]) by mailhost.iprg.nokia.com (8.9.3/8.9.3-GLGS) with ESMTP id UAA07703; Tue, 2 Jul 2002 20:05:25 -0700 (PDT) Received: (from root@localhost) by darkstar.iprg.nokia.com (8.11.0/8.11.0-DARKSTAR) id g6335OX13800; Tue, 2 Jul 2002 20:05:24 -0700 X-mProtect: <200207030305> Nokia Silicon Valley Messaging Protection Received: from UNKNOWN (172.19.68.218, claiming to be "gkong.iprg.nokia.com") by darkstar.iprg.nokia.com smtpdGunuiB; Tue, 02 Jul 2002 20:05:22 PDT Message-Id: <5.1.0.14.1.20020702200247.00a31960@mailhost.iprg.nokia.com> X-Sender: gkong@mailhost.iprg.nokia.com Date: Tue, 02 Jul 2002 20:05:00 -0000 To: Daniel Jacobowitz From: "KONG, Gangfeng" Subject: Re: Remote target behind console server Cc: Quality Quorum , Andrew Cagney , gdb@sources.redhat.com In-Reply-To: <20020629042856.GA25124@nevyn.them.org> References: <5.1.0.14.1.20020628183650.02b3c6b0@mailhost.iprg.nokia.com> <3D1CE7D9.4050607@ges.redhat.com> <5.1.0.14.1.20020628183650.02b3c6b0@mailhost.iprg.nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-SW-Source: 2002-07/txt/msg00025.txt.bz2 At 12:28 AM 6/29/2002 -0400, Daniel Jacobowitz wrote: >On Fri, Jun 28, 2002 at 06:45:17PM -0700, KONG, Gangfeng wrote: > > > > > > > >> > > >> 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. > > Thanks for your message, > > > > Basically I need to use 'telnet' to the ip-addr of my terminal server to > > access > > the serial port of my target box. I may reconfigure the terminal > server, but > > how can I let gdb to setup an telnet connection to the terminal server and > > then take this connection as media for its serial access to the stub on > > the target? > >Have you tried using 'target remote ip-addr:port' to the terminal >server directly? Hi, I start the gdb stub on the target by: gdbstart -s 38400 -t /dev/ttyS0 and start the gdb on the development box by: gdb vmlinux gdb) gdb) set remotebaud 38400 gdb) target remote my-server-ipaddr:port #note, the port I put here is the serial port# on the server, #not L4 port, correct? Now I only get error message: ignoring packet error, continuing.... If I replace the console server by a direct serial cable for the above 2 boxes, and use 'target remote /dev/ttyS0' instead. Everything works fine. So I know except the serial connection, the rest configs are correct. Could anybody correct me where I did wrongly ? Thanks GF