This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bdi2000 and gdb (newbie question)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]