From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18890 invoked by alias); 13 Jun 2003 13:28:39 -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 18875 invoked from network); 13 Jun 2003 13:28:39 -0000 Received: from unknown (HELO TheWorld.com) (199.172.62.105) by sources.redhat.com with SMTP; 13 Jun 2003 13:28:39 -0000 Received: from world.std.com (pce@world-f.std.com [199.172.62.5]) by TheWorld.com (8.12.8p1/8.12.8) with ESMTP id h5DDSZKk004920; Fri, 13 Jun 2003 09:28:35 -0400 Received: from localhost (qqi@localhost) by world.std.com (8.9.3/8.9.3) with ESMTP id JAA05081; Fri, 13 Jun 2003 09:28:34 -0400 (EDT) Date: Fri, 13 Jun 2003 13:28:00 -0000 From: Quality Quorum To: Brijesh Shukla cc: gdb Subject: Re: remote debugging In-Reply-To: <3EE9822C.8090209@access.co.jp> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-06/txt/msg00240.txt.bz2 On Fri, 13 Jun 2003, Brijesh Shukla wrote: > Hello, > > Can any body explain the remote debugging application in Linux. > currently for testing purpose as simple case, I have chosen two i686 > Pentium machines with Linux > installed on two systems. on system I am running gdb and in another > system I am running gdb server. I did the following steps. > > Target: > gdbserver host:port program > > //Now gdbserver has been started > > Host: > > // I compiled the simple hello word program as gcc -g program.c -o > program > // copied the program into target system > > gdb program > gdb> target remote host:port > gdb> > > // connection established > gdb> load You should not do that, gdbserver already loaded the program. The rest of your problems may be related to this step. > > // it is showing loading the sections, I m not sure the addresses from > local machine or from target machine ( how can I verify ? in our > case,sicne both machine > are same architecture and same OS) > > I can set break point to main. > > if I do step or next, I am getting the error message "cannot find > bounds of current function" > > if I do continue, I am getting the error message " program received > SIGSEGV, segmentation fault" > > can anybody tell me where is the wrong ? > > Is there anything's need to be take care while building the gdb in one > machine. ? currently I am using the default gdb installed in machine > due to both machine are same architecture. > > Regards > Brijesh Shukla > Thanks, Aleksey