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]

gdb hangs on diag_printf()


I tried putting a diag_printf statement before cyg_net_init(), to see what
cahnnel was being used - it reported -3, and then hung up again.

I looked at the gdb log (see below), and realised that the last line is a
'+' followed by Ctrl-C , which is me terminating the gdb session. The remote
target never responds to the Ctrl-C, and apparently doesn't see the '+'
character, as the logic analyser shows it waiting indefinitely in
cyg_hal_sxx_getc(), called from cyg_hal_diag_mangler_gdb_flush.

The preceding cyg_hal_sxx_getc's worked just fine, but this one doesn't.
This is (apparently) the first use of cyg_hal_diag_mangler_gdb_flush(), and
probably the first cyg_hal_sxx_getc() after the application startup...

Any ideas?

===========================================
...
Download omitted
...

r +$OK#9a
w +$P40=00020000#73
r +$OK#9a
w +
c c
w $Z0,20010,4#09
r +$#00
w +$m20010,4#c0
r +$3c600000#bc
w +$X20010,4:}]\x82\x10\b#59
r +$OK#9a
w +$Hc0#db
r +$OK#9a
w +$c#63
r +$T0540:00020010;01:03fbcfc0;#72
w +$X20010,4:<`\x00\x00#81
r +$OK#9a
w +$Hc0#db
r +$OK#9a
w +$s#73
r +$T0540:00020014;01:03fbcfc0;#76
w +$m20010,4#c0
r +$3c600000#bc
w +$X20010,4:}]\x82\x10\b#59
r +$OK#9a
w +$Hc0#db
r +$OK#9a
w +$c#63
r
+\x00$O6379675F6E65745F696E69742829206F72696720636F6E736F6C65203D202D330A#AC
w +\x03
End of log
===========================================================

Tony Butt
Software Engineer
CEA Technologies

tjb@cea.com.au
Ph:  02 62130195 
Fax: 02 62130013


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