public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug gdb/29032] [gdb][test-case failure, taskset] FAIL: gdb.base/eof-exit.exp: with non-dump terminal: close GDB with eof (timeout) Date: Thu, 07 Apr 2022 09:10:53 +0000 [thread overview] Message-ID: <bug-29032-4717-Ep4LzFxRKX@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-29032-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=29032 --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- This make the test-case pass reliably: ... diff --git a/gdb/inflow.c b/gdb/inflow.c index 9c7e2907625..c268ca9e4dc 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -145,6 +145,11 @@ set_initial_gdb_ttystate (void) /* Note we can't do any of this in _initialize_inflow because at that point stdin_serial has not been created yet. */ + struct termios termios; + tcgetattr (0, &termios); + termios.c_lflag &= ~(ICANON); + tcsetattr (0, TCSANOW, &termios); + initial_gdb_ttystate = serial_get_tty_state (stdin_serial); if (initial_gdb_ttystate != NULL) ... It changes the initial terminal state (the one that unprepped returns to) to non-canonical. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-04-07 9:10 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-06 11:36 [Bug gdb/29032] New: " vries at gcc dot gnu.org 2022-04-06 11:36 ` [Bug gdb/29032] " vries at gcc dot gnu.org 2022-04-06 11:41 ` vries at gcc dot gnu.org 2022-04-07 8:02 ` vries at gcc dot gnu.org 2022-04-07 9:10 ` vries at gcc dot gnu.org [this message] 2022-04-07 10:00 ` vries at gcc dot gnu.org 2022-04-07 10:08 ` vries at gcc dot gnu.org 2022-04-07 10:32 ` vries at gcc dot gnu.org 2022-04-07 11:56 ` vries at gcc dot gnu.org 2022-04-07 12:44 ` aburgess at redhat dot com 2022-04-07 13:18 ` vries at gcc dot gnu.org 2022-04-07 14:44 ` vries at gcc dot gnu.org 2022-04-08 13:17 ` vries at gcc dot gnu.org 2022-04-08 15:37 ` vries at gcc dot gnu.org 2022-05-09 14:01 ` cvs-commit at gcc dot gnu.org 2022-05-25 8:20 ` [Bug gdb/29032] [gdb] ^D while not at prompt doesn't trigger quit vries at gcc dot gnu.org
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=bug-29032-4717-Ep4LzFxRKX@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@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: linkBe 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).