public inbox for archer@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>,
	archer@sourceware.org, utrace-devel@redhat.com
Subject: Re: problems with v3
Date: Fri, 13 Aug 2010 01:59:00 -0000	[thread overview]
Message-ID: <20100813015844.B7703400E3@magilla.sf.frob.com> (raw)
In-Reply-To: Tom Tromey's message of  Thursday, 12 August 2010 19:44:59 -0600 <m339uj2smc.fsf@fleche.redhat.com>

I don't really know the gdb code, but I'm surprised it really has multiple
different "serial" backends.  I would have thought that after opening the
fd, you would treat them all about the same.  If tcsetattr et al work on
it, then you set the baud rate and whatever, if they say ENOTTY then fine.
It might make sense to default to a short read timeout for an actual serial
port (or UDP port), which might be unplugged or the other end dead, or
whatever; and to an infinite timeout for a non-tty, which should more
presumably have its fd shut down and read EOF or EPIPE or whatever when the
stub goes away, and otherwise perhaps the stub is just taking that long.
But aside from that, I don't know why you wouldn't treat all kinds of
remote protocol fd's the same wrt select/poll and blocking/nonblocking
reads/writes, be they serial-port fds, "pipe" socketpair sockets, network
sockets, or fds to a new magic file that pretends to be a tty or a socket
or whatever (or even a disk file of canned response playback!).


Thanks,
Roland

  reply	other threads:[~2010-08-13  1:59 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12  0:01 gdbstub initial code, v3 Oleg Nesterov
2010-08-12  1:14 ` Oleg Nesterov
2010-08-12  2:40   ` Oleg Nesterov
2010-08-12  4:37     ` Tom Tromey
2010-08-12 23:55       ` problems with v3 (Was: gdbstub initial code, v3) Oleg Nesterov
2010-08-13  1:45         ` problems with v3 Tom Tromey
2010-08-13  1:59           ` Roland McGrath [this message]
2010-08-13  4:37             ` Tom Tromey
2010-08-13  8:30               ` Roland McGrath
2010-08-13 16:31                 ` Tom Tromey
2010-08-13 21:15                   ` Oleg Nesterov
2010-08-13 21:18                     ` Tom Tromey
2010-08-13 14:08               ` Daniel Jacobowitz
2010-08-13 20:56         ` problems with v3 (Was: gdbstub initial code, v3) Oleg Nesterov
2010-08-13 21:31           ` Roland McGrath
2010-08-13  1:02     ` gdbstub initial code, v3 Roland McGrath
2010-08-12 14:52   ` Kevin Buettner
2010-08-13  0:53     ` Roland McGrath
2010-08-13  3:31       ` Kevin Buettner
2010-08-12 15:06   ` Frank Ch. Eigler

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=20100813015844.B7703400E3@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=archer@sourceware.org \
    --cc=oleg@redhat.com \
    --cc=tromey@redhat.com \
    --cc=utrace-devel@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).