From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22392 invoked by alias); 14 Feb 2002 07:07:32 -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 22195 invoked from network); 14 Feb 2002 07:07:11 -0000 Received: from unknown (HELO web13706.mail.yahoo.com) (216.136.175.139) by sources.redhat.com with SMTP; 14 Feb 2002 07:07:11 -0000 Message-ID: <20020214070702.5676.qmail@web13706.mail.yahoo.com> Received: from [206.168.193.162] by web13706.mail.yahoo.com via HTTP; Wed, 13 Feb 2002 23:07:02 PST Date: Wed, 13 Feb 2002 23:07:00 -0000 From: David Jones Subject: Re: gdbserver error (getprotobyname) To: gdb@sources.redhat.com In-Reply-To: <20020213101305.A32551@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-02/txt/msg00210.txt.bz2 Hi All, Thanks for the comments and suggestions to my gdbserver problem. > > 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, I don't have /etc/nsswitch.conf and /lib/libnss_files* and friends since I used a statically linked binary for the StrongArm given to me by Bill. I will check out the gdb source, apply Martin's patch, and try to build gdb and gdbserver from the source. One question though, are there any special or unique options that I need to pass to the configure script ? David --- Daniel Jacobowitz wrote: > 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 __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com