From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2786 invoked by alias); 4 Jun 2012 05:25:06 -0000 Received: (qmail 2763 invoked by uid 22791); 4 Jun 2012 05:25:04 -0000 X-SWARE-Spam-Status: No, hits=-6.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,TW_YM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jun 2012 05:24:48 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q545OiZ4005906 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 4 Jun 2012 01:24:44 -0400 Received: from host2.jankratochvil.net (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q545Ocpd012346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 4 Jun 2012 01:24:43 -0400 Date: Mon, 04 Jun 2012 05:25:00 -0000 From: Jan Kratochvil To: Hans-Peter Nilsson Cc: siddhesh@redhat.com, binutils@sourceware.org, gdb-patches@sourceware.org Subject: Re: [patch#2] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory Message-ID: <20120604052438.GA19227@host2.jankratochvil.net> References: <20120601210530.GA5461@host2.jankratochvil.net> <201206040510.q545AIKV024151@ignucius.se.axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201206040510.q545AIKV024151@ignucius.se.axis.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00075.txt.bz2 On Mon, 04 Jun 2012 07:10:18 +0200, Hans-Peter Nilsson wrote: > > From: Jan Kratochvil > > Date: Fri, 1 Jun 2012 23:05:30 +0200 > > > bfd/ > > 2012-06-01 Jan Kratochvil > > > > * 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 > > > > * 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