This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: bdi2000 and gdb (newbie question)
- From: Jay Monkman <jtm-list-gdb at smoothsmoothie dot com>
- To: Mark Beckwith <mark at intrig dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 26 Aug 2004 17:17:13 -0500
- Subject: Re: bdi2000 and gdb (newbie question)
- References: <20040826205715.GF6632@john.intrig.com>
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