From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19963 invoked by alias); 13 Feb 2002 15:13:12 -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 19802 invoked from network); 13 Feb 2002 15:13:06 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 13 Feb 2002 15:13:06 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16b15l-0008Uc-00; Wed, 13 Feb 2002 10:13:05 -0500 Date: Wed, 13 Feb 2002 07:13:00 -0000 From: Daniel Jacobowitz To: David Jones Cc: gdb_list Subject: Re: gdbserver error (getprotobyname) Message-ID: <20020213101305.A32551@nevyn.them.org> Mail-Followup-To: David Jones , gdb_list References: <20020213064037.92526.qmail@web13703.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020213064037.92526.qmail@web13703.mail.yahoo.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00205.txt.bz2 On Tue, Feb 12, 2002 at 10:40:37PM -0800, David Jones wrote: > Hi, > I am using gdbserver on a StrongArm board compiled > for arm-linux. On my Linux x86 host I am running > gdb compiled to debug an arm-linux target. Thanks > to Bill Gatliff for helping me out with this. > > I can successfully debug a program if I use the serial > port between the host and the target. This is great! > > However when I try to use a network connection I get > the following error: (below is a trace of my commands) > > (target output) > ---------------------------------------------------- > # ./arm-linux-gdbserver davesplace:90 hello > Process hello created; pid = 180 > getprotobyname: No such file or directory. > Exiting > > (host output) > (gdb) target remote tuxscreen:90 > Remote debugging using tuxscreen:90 > Couldn't establish connection to remote target > Remote communication error: Connection reset by peer. > (gdb) > # > ---------------------------------------------------- > > Has anyone seen this type of error (i.e. getprotobyname)? > > > I start the gdbserver first as recommended by the GDB documentation. > > man getprotobyname shows: > The getprotobyname() function returns a protoent structure for the line from > /etc/protocols that matches the protocol name name. > > The /etc/protocols file is present on my StrongArm target. Are /etc/nsswitch.conf and /lib/libnss_files* and friends? But in any case I recommend Martin's patch. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer