From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
To: gdb@sources.redhat.com
Subject: gdbserver vs. serial ports
Date: Thu, 12 Jul 2001 11:20:00 -0000 [thread overview]
Message-ID: <20010712112040.A8123@nevyn.them.org> (raw)
I see that in remote-utils.c, we deliberately set VMIN and VTIME to 0 if we
open a serial port. On an i386-linux (2.4) host, this has the effect of
making read() return 0 if no data is available. We see the 0 and
immediately decide that it's an EOF, and close/reopen the serial port.
I don't have a lot of experience with serial programming. Should we be
setting VMIN differently, or should we treat read() returning 0 differently?
It looks like ser-unix.c treats them read() returning 0 as a timeout and
sets VMIN appropriately before calling read(). Which raises the question -
does anyone know if gdbserver actually worked over serial ports? :)
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
next reply other threads:[~2001-07-12 11:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-12 11:20 Daniel Jacobowitz [this message]
2001-07-12 12:20 ` J.T. Conklin
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=20010712112040.A8123@nevyn.them.org \
--to=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