From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30230 invoked by alias); 4 Jun 2012 14:37:11 -0000 Received: (qmail 30110 invoked by uid 22791); 4 Jun 2012 14:37:09 -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 14:36:50 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q54Eakhg022974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 4 Jun 2012 10:36:46 -0400 Received: from host2.jankratochvil.net (ovpn-116-47.ams2.redhat.com [10.36.116.47]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q54Eafqo009942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 4 Jun 2012 10:36:44 -0400 Date: Mon, 04 Jun 2012 14:37:00 -0000 From: Jan Kratochvil To: binutils@sourceware.org Cc: Hans-Peter Nilsson , siddhesh@redhat.com, gdb-patches@sourceware.org Subject: [commit] [patch#2] bfd: Use size_t for length argument totarget_read_memory function passed into bfd_elf_bfd_from_remote_memory Message-ID: <20120604143641.GA15217@host2.jankratochvil.net> References: <20120604052438.GA19227@host2.jankratochvil.net> <201206040622.q546Mqbu026308@ignucius.se.axis.com> <20120604121108.GE19627@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120604121108.GE19627@bubble.grove.modra.org> 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/msg00081.txt.bz2 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: 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.