Correct logical error in NetBSD's read_memory and write_memory
authorKamil Rytarowski <n54@gmx.com>
Wed, 7 Oct 2020 13:12:59 +0000 (15:12 +0200)
committerKamil Rytarowski <n54@gmx.com>
Wed, 7 Oct 2020 13:15:54 +0000 (15:15 +0200)
commit4641551a7a176f31ebe75bf068b4a6e3fa5a612f
tree5fd2f69d3a3ba8660a95a039aef24df65ccfc643
parent2be01f639c0983caeafdd36127ac3ef517d7a643
Correct logical error in NetBSD's read_memory and write_memory

In case of repeated ptrace PT_IO call and returning the value of
transferred bytes equal to 0, do not return without setting
xfered_len.

gdb/ChangeLog:

        * nat/netbsd-nat.c (write_memory, read_memory): Update.
gdb/ChangeLog
gdb/nat/netbsd-nat.c