diff options
author | Mark Kettenis <kettenis@gnu.org> | 2014-02-12 14:51:19 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2014-02-12 14:51:19 +0100 |
commit | 493443a47f514251f12e08223b2c56f0fed69015 (patch) | |
tree | 13b9bf19a9039cd7d735e0ae955960bb97a72433 /gdb/sparc64obsd-tdep.c | |
parent | 706d088346930eeee11befa93330375164e175b9 (diff) | |
download | gdb-493443a47f514251f12e08223b2c56f0fed69015.zip gdb-493443a47f514251f12e08223b2c56f0fed69015.tar.gz gdb-493443a47f514251f12e08223b2c56f0fed69015.tar.bz2 |
FIX EOF detection in PT_IO-based to_xfer_partial implementation.
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.
Diffstat (limited to 'gdb/sparc64obsd-tdep.c')
0 files changed, 0 insertions, 0 deletions