This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug remote/21188] New: Remote timeouts don't work correctly


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]