[Bug testsuite/33371] [gdb/testsuite, cygwin] UNRESOLVED: gdb.tui/pr30056.exp: Control-C aborts isearch
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Wed Sep 10 13:29:53 GMT 2025
https://sourceware.org/bugzilla/show_bug.cgi?id=33371
--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Seems to be fixed by EINTR loop:
...
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index c97e8fd1717..08551774305 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -770,7 +770,13 @@ static int
gdb_wgetch (WINDOW *win)
{
nonl ();
- int r = wgetch (win);
+ int r;
+ do
+ {
+ errno = 0;
+ r = wgetch (win);
+ }
+ while (r == ERR && errno == EINTR);
nl ();
return r;
}
...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list