[RFC] File-I/O, target access to host file system via gdb remote protocol enhancement
Andrew Cagney
ac131313@redhat.com
Wed Feb 26 21:19:00 GMT 2003
>
> I like this one too; but I'm not sure that I like linking it to the
> remote-syscall interface. Implementation-wise, that's the most useful
> method for a stub like RedBoot; but for a larger system like gdbserver,
> it's useful to allocate the program a normal pseudo-terminal as if it
> had a console. And to do character rather than line I/O.
>
> As I'm sure Andrew will remind me, my suggestion doesn't fit the
> current remote protocol very well; it's not synchronous enough for one
> thing. So don't take this as an objection, and I'll come back to
> proper remote console support a little later. This'll be a nice
> starting point.
Just FYI. The protocol doesn't preclude doing character IO and doesn't
preclude the remote end using a pty. The pty problem is that it is more
complex. The debug agent (or GDB, in the case of the MI console) needs
to be able to juggle events from multiple sources (wait and i/o).
Anyway, if the overhead of character i/o proves to be too great then a
refinement can be made.
Andrew
More information about the Gdb
mailing list