From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9316 invoked by alias); 26 Aug 2004 22:12:56 -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 9130 invoked from network); 26 Aug 2004 22:12:48 -0000 Received: from unknown (HELO smoothsmoothie.com) (198.87.242.244) by sourceware.org with SMTP; 26 Aug 2004 22:12:48 -0000 Received: (qmail 6428 invoked by uid 1000); 26 Aug 2004 22:17:13 -0000 Date: Thu, 26 Aug 2004 22:12:00 -0000 From: Jay Monkman To: Mark Beckwith Cc: gdb@sources.redhat.com Subject: Re: bdi2000 and gdb (newbie question) Message-ID: <20040826221713.GH14665@smoothsmoothie.com> References: <20040826205715.GF6632@john.intrig.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040826205715.GF6632@john.intrig.com> User-Agent: Mutt/1.5.6+20040722i X-SW-Source: 2004-08/txt/msg00404.txt.bz2 On Thu, Aug 26, 2004 at 03:57:15PM -0500, Mark Beckwith wrote: > prompt> gdb CSB337_tst.elf > > (gdb) target remote 192.168.100.44:2001 > Remote debugging using 192.168.100.44:2001 > 0x00000000 in ?? () > > // Ok, then I try to step: > > (gdb) step > Cannot find bounds of current function It doesn't look like you loaded your program. Here's the basic sequence I use # gdb (gdb) file whatever.elf (gdb) load (gdb) br main (gdb) continue There are a few things to keep in mind when using the BDI-2000 with GDB. - You need to load the file before you do start trying to run it. - Use 'continue' not 'run' to initiate execution. - Make sure you have the BDI-2000 configured for the correct type of breakpoints. - (ARM specific) It is frequently good to put break points at the data and instruction expection vectors: br *0xc br *0x10