From: jtc@redback.com (J.T. Conklin)
To: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
Cc: gdb@sources.redhat.com
Subject: Re: gdbserver vs. serial ports
Date: Thu, 12 Jul 2001 12:20:00 -0000 [thread overview]
Message-ID: <5mbsmqj6or.fsf@jtc.redback.com> (raw)
In-Reply-To: <20010712112040.A8123@nevyn.them.org>
>>>>> "Daniel" == Daniel Jacobowitz <dmj+@andrew.cmu.edu> writes:
Daniel> I don't have a lot of experience with serial programming.
Daniel> Should we be setting VMIN differently, or should we treat
Daniel> read() returning 0 differently? It looks like ser-unix.c
Daniel> treats them read() returning 0 as a timeout and sets VMIN
Daniel> appropriately before calling read(). Which raises the
Daniel> question - does anyone know if gdbserver actually worked over
Daniel> serial ports? :)
The TERMIOS and TERMIO cases put the tty in raw + non blocking mode,
but the SGTTY case only puts the tty in raw mode. It's possible, if
this ever worked, that it was only tested on an very old machine pre-
termios and termio serial disciplines.
Since the current model of gdbserver and the sample gdb stubs do not
make any allowances for timeouts, I think it's reasonable to use the
default VMIN and VTIME, which should result in a blocking read().
If we're really going to support serial i/o in gdbserver, we probably
need to provide options for setting the baud rate, etc.
--jtc
--
J.T. Conklin
RedBack Networks
prev parent reply other threads:[~2001-07-12 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-12 11:20 Daniel Jacobowitz
2001-07-12 12:20 ` J.T. Conklin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5mbsmqj6or.fsf@jtc.redback.com \
--to=jtc@redback.com \
--cc=dmj+@andrew.cmu.edu \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox