From: Jan Kratochvil Date: Fri, 12 Apr 2013 16:04:50 +0000 (+0000) Subject: gdb/ X-Git-Tag: gdb_7_6-2013-04-26-release~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7c3ddd4409e0e4a707dbc68c8d6430f2e544555;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d2924e14fe4..2a61a158b20 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2013-04-12 Jan Kratochvil + + 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. + 2013-04-12 Pedro Alves Hui Zhu diff --git a/gdb/jit.c b/gdb/jit.c index ecf7317a131..2383a2b30b9 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -90,7 +90,9 @@ static int mem_bfd_iovec_close (struct bfd *abfd, void *stream) { xfree (stream); - return 1; + + /* Zero means success. */ + return 0; } /* For reading the file, we just need to pass through to target_read_memory and diff --git a/gdb/minidebug.c b/gdb/minidebug.c index 7b1463b74c9..a33628a18b6 100644 --- a/gdb/minidebug.c +++ b/gdb/minidebug.c @@ -226,6 +226,8 @@ lzma_close (struct bfd *nbfd, lzma_index_end (lstream->index, &gdb_lzma_allocator); xfree (lstream->data); xfree (lstream); + + /* Zero means success. */ return 0; } diff --git a/gdb/remote.c b/gdb/remote.c index 2adf56843ca..2a26d68eade 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -9924,7 +9924,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 diff --git a/gdb/solib-spu.c b/gdb/solib-spu.c index 7be5232ed3c..fc9dcda72b8 100644 --- a/gdb/solib-spu.c +++ b/gdb/solib-spu.c @@ -286,7 +286,9 @@ static int spu_bfd_iovec_close (bfd *nbfd, void *stream) { xfree (stream); - return 1; + + /* Zero means success. */ + return 0; } static file_ptr diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c index ca8d92d33ac..1fab9da37b6 100644 --- a/gdb/spu-linux-nat.c +++ b/gdb/spu-linux-nat.c @@ -277,7 +277,9 @@ static int spu_bfd_iovec_close (struct bfd *nbfd, void *stream) { xfree (stream); - return 1; + + /* Zero means success. */ + return 0; } static file_ptr