[Bug remote/21188] New: Remote timeouts don't work correctly
gareth at blacksphere dot co.nz
sourceware-bugzilla@sourceware.org
Mon Feb 20 22:13:00 GMT 2017
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.
More information about the Gdb-prs
mailing list