]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Apr 2013 16:04:50 +0000 (16:04 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Apr 2013 16:04:50 +0000 (16:04 +0000)
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/ChangeLog
gdb/jit.c
gdb/minidebug.c
gdb/remote.c
gdb/solib-spu.c
gdb/spu-linux-nat.c

index d2924e14fe43884adbe5956a481fe90aab2ab4cf..2a61a158b20b02de0699658e824476e495eb9afc 100644 (file)
@@ -1,3 +1,12 @@
+2013-04-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       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  <palves@redhat.com>
            Hui Zhu  <hui@codesourcery.com>
        
index ecf7317a13170bd4685d4ff682db9f60030d6e25..2383a2b30b994c2a675ed7d64016c572a5921f22 100644 (file)
--- 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
index 7b1463b74c96212136ff767cc491c3735f92088f..a33628a18b6f431e8159421414ec7c275504868a 100644 (file)
@@ -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;
 }
 
index 2adf56843cad2bf110044cc7cb9cbfce7e673141..2a26d68eade5f8ff7f5d4cc90106524b1faa91ac 100644 (file)
@@ -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
index 7be5232ed3c1ca4620aad4fe5eae1e887cb5c9a5..fc9dcda72b83771b9a5f4a0acd4dcb33db7b8d9d 100644 (file)
@@ -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
index ca8d92d33ac114bedbb0df638c0498bba4cec8fb..1fab9da37b6c7416f66efdd6aaef62aba9d88d44 100644 (file)
@@ -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