From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [PATCH 1/2] Don't use F_SETFL in gdbreplay
Date: Fri, 17 Jul 2026 11:07:53 -0600 [thread overview]
Message-ID: <20260717-f-setfl-v1-1-0d1eec47cf25@adacore.com> (raw)
In-Reply-To: <20260717-f-setfl-v1-0-0d1eec47cf25@adacore.com>
There's no need to call fcntl with F_SETFL in gdbreplay, as gdbreplay
does not use or need SIGIO.
---
gdbserver/gdbreplay.cc | 3 ---
1 file changed, 3 deletions(-)
diff --git a/gdbserver/gdbreplay.cc b/gdbserver/gdbreplay.cc
index 4426dc316ec..ba03bf64b67 100644
--- a/gdbserver/gdbreplay.cc
+++ b/gdbserver/gdbreplay.cc
@@ -255,9 +255,6 @@ remote_open (const char *name)
#endif
}
-#if defined(F_SETFL) && defined (FASYNC)
- fcntl (remote_desc_in, F_SETFL, FASYNC);
-#endif
remote_desc_out = remote_desc_in;
}
--
2.55.0
next prev parent reply other threads:[~2026-07-17 17:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-17 17:07 [PATCH 0/2] Two small F_SETFL changes Tom Tromey
2026-07-17 17:07 ` Tom Tromey [this message]
2026-07-17 17:07 ` [PATCH 2/2] Use F_SETFL after F_SETOWN 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=20260717-f-setfl-v1-1-0d1eec47cf25@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@sourceware.org \
/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