This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[commit bfd+gdb] [PATCH] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Fri, 1 Jun 2012 18:39:52 +0200
- Subject: [commit bfd+gdb] [PATCH] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory
- References: <20120528143520.29254d79@spoyarek> <20120528110313.GH3086@bubble.grove.modra.org>
On Mon, 28 May 2012 13:03:13 +0200, Alan Modra wrote:
> On Mon, May 28, 2012 at 02:35:20PM +0530, Siddhesh Poyarekar wrote:
> > 2012-05-28 Siddhesh Poyarekar <siddhesh@redhat.com>
> >
> > * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
> > of target_read_memory as size_t.
> > * bfd-in2.h: Regenerate.
> > * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
> > argument of target_read_memory as size_t.
> > (_bfd_elf32_bfd_from_remote_memory): Likewise.
> > (_bfd_elf64_bfd_from_remote_memory): Likewise.
> > * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
> > * enfcode.h (NAME): Likewise.
>
> Since Jan has already given the OK, and these functions are only used
> by gdb, binutils maintainers hardly need to look at the patch. OK
> anyway, but please fix the ChangeLog
Checked in:
http://sourceware.org/ml/binutils-cvs/2012-06/msg00005.html
http://sourceware.org/ml/gdb-cvs/2012-06/msg00003.html
+ping for:
http://sourceware.org/ml/binutils/2012-05/msg00396.html
int -> bfd_size_type contents_size;
Thanks,
Jan