FIX EOF detection in PT_IO-based to_xfer_partial implementation.
authorMark Kettenis <kettenis@gnu.org>
Wed, 12 Feb 2014 13:51:19 +0000 (14:51 +0100)
committerMark Kettenis <kettenis@gnu.org>
Wed, 12 Feb 2014 13:51:19 +0000 (14:51 +0100)
At least on OpenBSD PT_IO/PIOD_READ_AUXV can return sucessfully without
transferring any bytes.  Arguably a kernel bug, but interpreting this as EOF
seems sensible.

gdb/ChangeLog:

        * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
        if a PT_IO ptrace request returns sucessfully but indicates that 0
        bytes were transferred.


No differences found
This page took 0.02456 seconds and 4 git commands to generate.