This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch#2] 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: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: siddhesh at redhat dot com, binutils at sourceware dot org, gdb-patches at sourceware dot org
- Date: Mon, 4 Jun 2012 07:24:38 +0200
- Subject: Re: [patch#2] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory
- References: <20120601210530.GA5461@host2.jankratochvil.net> <201206040510.q545AIKV024151@ignucius.se.axis.com>
On Mon, 04 Jun 2012 07:10:18 +0200, Hans-Peter Nilsson wrote:
> > From: Jan Kratochvil <jan.kratochvil@redhat.com>
> > Date: Fri, 1 Jun 2012 23:05:30 +0200
>
> > bfd/
> > 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > * 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 size_t.
> (..."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/
> > 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
> >
> > * 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.
>
> If this is ready to commit and you don't have the time today,
> just say the word.
I believe I need bfd/ approval by Alan or other bfd/ maintainer.
Thanks,
Jan