This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] [patch#2] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory

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 <>
> > > 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:


	* 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.
	* symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
	(target_read_memory_bfd): New function.
	(symbol_file_add_from_memory): Use it.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]