From db03dcab46c1a0ddf369040f34779ad02fb71fa0 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 12 Apr 2013 16:04:07 +0000 Subject: gdb/ Fix GDB regression related to PR binutils/14813. * jit.c (mem_bfd_iovec_close): Return 0 for success. * minidebug.c (lzma_close): Add return value comment. * remote.c (remote_bfd_iovec_close): Return 0 for success. * solib-spu.c (spu_bfd_iovec_close): Likewise. * spu-linux-nat.c (spu_bfd_iovec_close): Likewise. --- gdb/remote.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/remote.c') diff --git a/gdb/remote.c b/gdb/remote.c index f0dbba668cd..96abc5d09bf 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -9937,7 +9937,8 @@ remote_bfd_iovec_close (struct bfd *abfd, void *stream) connection was already torn down. */ remote_hostio_close (fd, &remote_errno); - return 1; + /* Zero means success. */ + return 0; } static file_ptr -- cgit v1.2.1