gdbserver can't run over serial
Jim Blandy
jimb@codesourcery.com
Tue Oct 2 21:49:00 GMT 2007
"xchen" <xchen at sunrisetelecom.com.cn> writes:
> Firstly gdb connected with gdbserver, then gdbserver was silent.
> Remotebaud was 9600 and remotedevice was /dev/ttyS0. I set debug remote 1
> and see lots of msg. But I don't understand it at all. Belowed is snapshot
>
> ./gdbserver /dev/ttyS0 hellogdb
> Process hellogdb created; pid = 245
> Remote debugging using /dev/ttyS0
If you're curious, the remote protocol is documented in Appendix D of
the GDB manual. Your transcript at least shows that gdb and gdbserver
are talking to each other happily.
If you were to simply run 'hellogdb' instead of './gdbserver
... hellogdb', where would hellogdb's stdout go? Would it go to
/dev/ttyS0 too? If so: GDB silently consumes any extraneous
characters it receives between packets, so GDB may be simply eating
your output.
More information about the Gdb
mailing list