[commit] [patch#2] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory
Jan Kratochvil
jan.kratochvil@redhat.com
Mon Jun 4 14:37:00 GMT 2012
On Mon, 04 Jun 2012 14:11:09 +0200, Alan Modra wrote:
> On Mon, Jun 04, 2012 at 08:22:52AM +0200, Hans-Peter Nilsson wrote:
> > > From: Jan Kratochvil <jan.kratochvil@redhat.com>
> > > I believe I need bfd/ approval by Alan or other bfd/ maintainer.
>
> I doubt any of the binutils maintainers would object to gdb
> maintainers making fixes to parts of bfd intimately related to gdb.
> Just call it obvious and commit. ;)
Therefore checked in:
http://sourceware.org/ml/binutils-cvs/2012-06/msg00014.html
http://sourceware.org/ml/gdb-cvs/2012-06/msg00017.html
Sorry,
Jan
bfd/
* bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
of target_read_memory as bfd_size_type.
* bfd-in2.h: Regenerate.
* elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
argument of target_read_memory as bfd_size_type.
(_bfd_elf32_bfd_from_remote_memory): Likewise.
(_bfd_elf64_bfd_from_remote_memory): Likewise.
* elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
* elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
gdb/
* symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
parameters.
(target_read_memory_bfd): New function.
(symbol_file_add_from_memory): Use it.
More information about the Gdb-patches
mailing list