The redboot is a ROMRAM image and it starts in flash and then copies itself to 
RAM.
Then at redboot prompt I load the application image using ethernet to location 
0x100000 in RAM (RAM starts at 0x00).
I can, at this point, say 'go 0x100000' and the applications runs fine but I 
can't seem to get it to run using gdb command.

Instead of running it from redboot prompt, I log out of the debug port and then 
I run powerpc-eabi-gdb on a linux box and then the rest is shown in the log.

Thanx for the reply.


----------------------------------------
> Subject: RE: [ECOS] GDB Issue on MPC837X
> Date: Tue, 8 Mar 2011 06:01:18 -0800
> From: ccout...@stmi.com
> To: nd6...@hotmail.com; ecos-discuss@ecos.sourceware.org
>
> Hi,
>
> How do you load the application in RAM? Are you building a ROMRAM type of 
> application that relocates to RAM which you plan to debug using the GDB 
> stubs? Can you dump the memory content at address 0x100000 and forward, is 
> the memory initialized?
>
> Christophe
>
> -----Original Message-----
> From: ecos-discuss-ow...@ecos.sourceware.org 
> [mailto:ecos-discuss-ow...@ecos.sourceware.org] On Behalf Of Chris Cuthbert
> Sent: 8. mars 2011 02:33
> To: ecos-discuss
> Subject: [ECOS] GDB Issue on MPC837X
>
>
> Hello,
>
> I am trying to get gdb working on a MPC847X ERDB eval board using the serial 
> port.
> Basically, I cannot get gdb to start executing the application loaded in RAM 
> at 0x100000.
> Logs below.
>
> Any help appreciated.
> Thanx.
>
> =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.03.07 15:42:06 =~=~=~=~=~=~=~=~=~=~=~=
> (gdb) set debug serial 10
> (gdb) set debug remote 1
> (gdb) tar rem /dev/ttySI166
> Remote debugging using /dev/ttySI166
> Sending packet: $Hc-1#09...[
> r +]Ack
> [$][O][K][#][9][a]Packet received: OK
> Sending packet: $qC#b4...[+]Ack
> [$][E][0][2][#][a][7]Packet received: E02
> Sending packet: $qOffsets#4b...[+]Ack
> [$][#][0][0]Packet received:
> Sending packet: $?#3f...[+]Ack
> [$][S][0][4][#][b][7]Packet received: S04
> Sending packet: $Hg0#df...[+]Ack
> [$][O][K][#][9][a]Packet received: OK
> Sending packet: $g#67...[+]Ack
> [$][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][0][#][8][0]Packet
>  received: 
> 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
> 0x0 in __lshrdi3 (u=0, b=0)
> (gdb)
> (gdb) jump *0x100000
> Line 16 is not in `__lshrdi3'.  Jump anyway? (y or n) y
> Continuing at 0x100000.
> Sending packet: $P40=00100000#72...[+]Ack
> [$][O][K][#][9][a]Packet received: OK
> Sending packet: $Hc0#db...[+]Ack
> [$][O][K][#][9][a]Packet received: OK
> Sending packet: $c#63...[+]Ack
> [$][T][0][4][4][0][:][0][0][1][0][0][0][0][0][;][0][1][:][0][0][0][0][0][0][0][0][;][#][6][8]Packet
>  received: T0440:00100000;01:00000000;
>
> Program received signal SIGILL, Illegal instruction.
> 0x100000 in _stext () at include/exception:16
> 16  virtual ~exception () { }
> Current language:  auto; currently c++
> (gdb)
>
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
                                          

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

Reply via email to