summaryrefslogtreecommitdiff
path: root/gdb/jit.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-04-12 16:04:07 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-04-12 16:04:07 +0000
commitdb03dcab46c1a0ddf369040f34779ad02fb71fa0 (patch)
tree40f78f86c992a2c189fba4e54d3ba6f9d897b691 /gdb/jit.c
parent9bad6d497ef023ab46b493c84ad9c129e12461f1 (diff)
downloadgdb-db03dcab46c1a0ddf369040f34779ad02fb71fa0.tar.gz
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.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r--gdb/jit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index 33d3d612d06..6fc8524f54f 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