From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31590 invoked by alias); 25 Jul 2005 13:58:57 -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 31581 invoked by uid 22791); 25 Jul 2005 13:58:52 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 25 Jul 2005 13:58:52 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1Dx3Tm-00011r-0W; Mon, 25 Jul 2005 09:58:50 -0400 Date: Mon, 25 Jul 2005 13:58:00 -0000 From: Daniel Jacobowitz To: Buday Gergely Cc: gdb@sources.redhat.com Subject: Re: Cannot find bounds of current function Message-ID: <20050725135849.GA3918@nevyn.them.org> Mail-Followup-To: Buday Gergely , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00231.txt.bz2 On Mon, Jul 25, 2005 at 03:39:45PM +0200, Buday Gergely wrote: > Hi, > > I'm to use remote debugging via gdbserver on my Ubuntu linux box. > > I've compiled my program with the -g gcc option. Then started > > $ gdbserver host:10000 a.out > > From the same machine I started gdb and told her > > (gdb) target remote localhost:10000 > Remote debugging using localhost:10000 > 0xb7febc20 in ?? () > (gdb) n > Cannot find bounds of current function > > I've googled a bit and found that I should use add-symbol-file at the gdb > client. I've used an object file with debug information to load (not sure > about this one) but was totally inept to figure out what address should I > give as a second argument. Do you have any hint where I can get a proper > address from? Or, any advice how should I set up my remote debugging > session? No, don't mess with add-symbol-file. You aren't in a function: you're at the executable's starting point. Try setting a breakpoint at main and continuing. -- Daniel Jacobowitz CodeSourcery, LLC