This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug remote/21188] New: Remote timeouts don't work correctly
- From: "gareth at blacksphere dot co.nz" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 20 Feb 2017 16:43:55 +0000
- Subject: [Bug remote/21188] New: Remote timeouts don't work correctly
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21188
Bug ID: 21188
Summary: Remote timeouts don't work correctly
Product: gdb
Version: 7.12
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: remote
Assignee: unassigned at sourceware dot org
Reporter: gareth at blacksphere dot co.nz
Target Milestone: ---
The timeout mechanism in ser-unix.c was changed in commit 048094acc.
In do_hardwire_readchar(), the required timeout is broken into 1 second
intervals and wait_for() is called. Before, wait_for() set VTIME and VMIN so
the read would block, but now it uses select() to block for the specified
timeout. If wait_for() returns SERIAL_TIMEOUT, do_hardwire_readchar() returns
immediately, so the timeout is always only 1s.
--
You are receiving this mail because:
You are on the CC list for the bug.