This is the mail archive of the ecos-discuss@sourceware.org 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]

GDB-stub in Redboot fails to handshake


Hello Gents: 

As you can see in this gdb log file, my Sparc target running Redboot fails to 
recognize ($#00) the simple query commands offered by my Linux host over a 
serial connection. The target application is simply hello-world with a linked 
library build from ECOS version 1.0.7. Redboot is a ROMRAM bootloader also 
built from version 1.0.7. I can hear you smacking your foreheads asking why 
use V 1.0.7 , I am using this version because a board support package was 
built around it.

I tried the execution of Redboot with and without a '$' to start the GDB-stub 
with no improvement. Any application I try to load/continue ends with a 
Signal Hangup.  A diff between ECOS version 2.0 and 1.0.7 shows many changes 
to the code particularly the part for initiating gdb-stub. Is this old 
version suspect? Does the solution demand an upgrade to 2.0 or shall I debug 
1.0.7?

Thanks for any guidance,
Les



w +$Hc-1#09
r -
w $Hc-1#09
r <Timeout: 2 seconds>
w $Hc-1#09
r $#00
w +
r $#00
w +
r $#00
w +
r $#00
w +
r <Timeout: 2 seconds>

... repeats


c load
w $X41000000,0:#73
r +$OK#9a

... load application hello-world


Sending packet: $p42#d6...[+]Ack
[$][0][0][0][0][0][0][2][0][#][8][2]Packet received: 00000020
Sending packet: $p43#d7...[+]Ack
[$][4][0][0][0][0][0][5][0][#][8][9]Packet received: 40000050

...

Sending packet: $C01#a4...[+]Ack
[$][T][0][1][4][4][:][4][0][0][1][8][c][1][c][;][0][e][:][0][0][0][0][0][0][0]
[0][;][#][1][0]Packet received: T0144:40018c1c;0e:00000000;

Program received signal SIGHUP, Hangup.
0x40018c1c in ?? ()
    ...

The program is running.  Exit anyway? (y or n)




-- 
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]