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]

Re: Problem with JEENI jtag module


Joel Brenner wrote:
> 
> I've compiled and linked a litle source-code with option "CFLAGS =
> -DAT91M40400=1 -DAT91EB01=1 -c -g  -O2 -mcpu=arm7tdmi". The download of
> arm-elf object-code to target rdi works fine (file downloading with
> "gdb> file elf_filename "), but if I try to start the program gdb (
> insight-5)  answers "Cannot find bounds of current function ".
> 
> What I've to do? What I's the problem?
> 
> tanks : Joel Brenner

The sequence to download a program is:

(gdb) file YOURFILENAME
(gdb) load

Only after the load command your executable will be in the board memory
and the PC will be set to your program entry point (and the stack pointer
to the stack etc.).

Then you can set a breakpoint somewhere and say:

(gdb) continue



-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

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