This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: scanf with gdb stubs on ARM AEB
Ian Lance Taylor wrote:
> From: Jesper Skov <jskov@redhat.com>
> Date: 25 Jan 2000 10:02:50 +0100
>
> Combining GDB and user interaction on a target that only has one
> serial port is going to be a big problem.
>
> It's not conceptually difficult. Extend the gdb remote protocol to
> support a command providing input on the serial port. Add a command to
> gdb to send a line of input to the stub. Add a command to gdb to
> switch the stub over to receiving input on the serial port until some
> special character sequence is typed; implement this using the new
> remote protocol command. Implement the new remote protocol command in
> whatever stubs you care about.
Or make the command function the way that the "console output" command
currently works--- nothing interesting happens until you hit <return>, at
which point gdb sends the packet:
gdb> remote console "Hello, world!\n" <return>
--> $o48656c6c6f2c20776f726c64210a#<ck>
Just my $0.02.
b.g.
--
William A. Gatliff
Senior Design Engineer
Komatsu Mining Systems
To teach is to learn.