public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/30770] New: serial.c does not preserve errno correctly
@ 2023-08-16 14:11 tromey at sourceware dot org
  2023-08-29 12:53 ` [Bug remote/30770] " tromey at sourceware dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: tromey at sourceware dot org @ 2023-08-16 14:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30770

            Bug ID: 30770
           Summary: serial.c does not preserve errno correctly
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: remote
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

Internally at AdaCore there is a test that randomly fails.
The error message differs, though:

Remote communication error.  Target disconnected.: Arg list too long.
Remote communication error.  Target disconnected.: No error.
Remote communication error.  Target disconnected.: Not a directory.

Looking into this, it seems to me that serial.c doesn't
always preserve the correct errno, but remote.c seems to assume
that it does.

For example, ser-base.c:generic_readchar does a lot of work
after do_readchar fails.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-01-19 18:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-16 14:11 [Bug remote/30770] New: serial.c does not preserve errno correctly tromey at sourceware dot org
2023-08-29 12:53 ` [Bug remote/30770] " tromey at sourceware dot org
2023-08-29 13:48 ` tromey at sourceware dot org
2023-08-31 13:20 ` tromey at sourceware dot org
2023-09-12 16:27 ` tromey at sourceware dot org
2023-09-12 16:28 ` tromey at sourceware dot org
2023-11-27 20:14 ` cvs-commit at gcc dot gnu.org
2023-11-27 20:14 ` cvs-commit at gcc dot gnu.org
2023-11-27 20:14 ` cvs-commit at gcc dot gnu.org
2023-11-27 20:14 ` cvs-commit at gcc dot gnu.org
2023-11-27 20:14 ` cvs-commit at gcc dot gnu.org
2023-11-27 20:14 ` cvs-commit at gcc dot gnu.org
2023-11-27 23:29 ` tromey at sourceware dot org
2024-01-19 18:10 ` cvs-commit at gcc dot gnu.org

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).