public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: "Сергей Чернов" <klen_s@mail.ru>
Cc: gdb-patches@sourceware.org
Subject: Re: fix remote serial read
Date: Fri, 19 Jan 2024 11:02:33 -0700	[thread overview]
Message-ID: <87bk9hkxqe.fsf@tromey.com> (raw)
In-Reply-To: <1703799036.942375779@f754.i.mail.ru> (=?utf-8?B?ItCh0LXRgNCz?= =?utf-8?B?0LXQuSDQp9C10YDQvdC+0LIiJ3M=?= message of "Fri, 29 Dec 2023 00:30:36 +0300")

>>>>> Сергей Чернов <klen_s@mail.ru> writes:

> After closing "Bug 30770 - serial.c does not preserve errno correctly"
> https://sourceware.org/bugzilla/show_bug.cgi?id=30770
> remote debugging became impossible due to an attempt to recv() by a call intended for the socket, and not for the character device file. The
> documentation implicitly states that it is possible to use the read() call to work with a socket. But this does not mean in the general case that it is
> permissible to use recv in the case of a non-socket.
 
This patch wasn't sent in a way that was easy to apply, but I've gone
ahead and done it manually.  I'm going to push it shortly.

Tom

  reply	other threads:[~2024-01-19 18:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-28 21:30 Сергей Чернов
2024-01-19 18:02 ` Tom Tromey [this message]
2024-01-20 11:56   ` Сергей Чернов
2024-01-22  2:32     ` Simon Marchi
2024-01-22 15:40     ` Tom Tromey

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=87bk9hkxqe.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=klen_s@mail.ru \
    /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).