gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Apr 2013 16:04:07 +0000 (16:04 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 12 Apr 2013 16:04:07 +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 dc95da178abbdd372fa0c5e23d69416f12912963..e99bd77d16b3320a0591d64258e31fe37139628b 100644 (file)
@@ -1,4 +1,13 @@
-2013-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+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  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * config.in: Regenerate.
 
index 33d3d612d06fe5b399322ca20fcdd14d0b85fe56..6fc8524f54fcc8ab905b2d297107a09969f45545 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 f0dbba668cdb5584596e0a90579dbee72dfe07b5..96abc5d09bfbc5b27c5e6c77aed0cc2fb34bea79 100644 (file)
@@ -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
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
This page took 0.054591 seconds and 4 git commands to generate.