This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos 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: gdb error when loading an application a second time


On Thu, Jul 08, 2004 at 08:06:47PM +0800, kneep wrote:
> Hi list.
> 
> Here is my problem:
> 
> =======================================
> # xscale-elf-gdb -nw hello
> (gdb) target remote 10.8.1.117:9000
> Remote debugging using 10.8.1.117:9000
> 0x5000ee44 in ?? ()
> (gdb) load
> Loading section .rom_vectors, size 0x40 lma 0x20000
> Loading section .text, size 0x83a8 lma 0x20040
> Loading section .rodata, size 0x358 lma 0x283e8
> Loading section .data, size 0x36c lma 0x28740
> Start address 0x20040, load size 35500
> Transfer rate: 284000 bits/sec, 300 bytes/write.
> (gdb) c
> Continuing.
> Hello, eCos world!
> =======================================
> 
> Here everything goes well.
> Ctrl-C and kill and quit gdb.
> 
> Then the second time I load another applicaiton.
> 
> =======================================
> #xscale-elf-gdb -nw twothreads
> (gdb) target remote 10.8.1.117:9000
> Remote debugging using 10.8.1.117:9000
> 0x5000ee44 in ?? ()
> (gdb) load
> Loading section .rom_vectors, size 0x40 lma 0x20000
> Loading section .text, size 0xbd7c lma 0x20040
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> Ignoring packet error, continuing...
> ......
> =======================================
> 
> The error msg will never stop.
> It only happened when loading a different application at the second time.

The first time you load the application, redboot is in control. 

The second time, your application is still in control. You are then
overwriting the running application with a new application. This
causes the running application to crash.  

You should reset the board between each run so that you get back to
redboot.

        Andrew



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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