From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27669 invoked by alias); 25 Mar 2005 17:31:17 -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 27648 invoked from network); 25 Mar 2005 17:31:12 -0000 Received: from unknown (HELO baradas.org) (66.166.225.55) by sourceware.org with SMTP; 25 Mar 2005 17:31:12 -0000 Received: by baradas.org (Postfix, from userid 500) id EA8E398473; Fri, 25 Mar 2005 12:31:11 -0500 (EST) From: Peter Barada To: gdb@sources.redhat.com In-reply-to: (jjosburn@hotmail.com) Subject: Re: message: "Cannot find bounds of current function" References: Message-Id: <20050325173111.EA8E398473@baradas.org> Date: Fri, 25 Mar 2005 17:31:00 -0000 X-SW-Source: 2005-03/txt/msg00237.txt.bz2 >what does that message mean? >i have start a executeable remotely via the command: >gdbserver 192.168.0.10:1234 ./stubs > > >(gdb) file /tmp/stubs/src/stubs >Reading symbols from /tmp/stubs/src/stubs...done. >(gdb) target extended-remote 192.168.0.10:1234 >Remote debugging using 192.168.0.10:1234 >0x400009c0 in ?? () >(gdb) break main >Breakpoint 1 at 0x8048338: file main.c, line 8. >(gdb) n >Cannot find I bounds of current function >(gdb) You *really* should read the documentation a bit deeper. This is because when you attached to gdbserver, the process under debug has not completed the C start-up code. If you had 'objdump -h' the program you are trying to debug, you would have found that 0x400009c0 is is *way* outside the bounds of the program. If instead you tried: (gdb) target extended-remote 192.168.0.10:1234 Remote debugging using 192.168.0.10:1234 0x400009c0 in ?? () (gdb) break main Breakpoint 1 at 0x8048338: file main.c, line 8. (gdb) c Breakpoint 1, main ( ... ) at /.../main.c:8 (gdb) At this point the program counters is *inside* your program and gdb can match up the program counter to source code. -- Peter Barada peter@the-baradas.com