From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14691 invoked by alias); 2 Mar 2012 03:21:19 -0000 Received: (qmail 14681 invoked by uid 22791); 2 Mar 2012 03:21:18 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 03:21:05 +0000 Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E89F91B4003; Fri, 2 Mar 2012 03:21:04 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: Re: [RFC] rx sim: Print load statistics Date: Fri, 02 Mar 2012 03:21:00 -0000 User-Agent: KMail/1.13.7 (Linux/3.2.0; KDE/4.6.5; x86_64; ; ) Cc: Kevin Buettner References: <20120301173842.3802cca3@mesquite.lan> In-Reply-To: <20120301173842.3802cca3@mesquite.lan> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5485370.o7cpk95fXh"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201203012221.15043.vapier@gentoo.org> 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-03/txt/msg00070.txt.bz2 --nextPart5485370.o7cpk95fXh Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-length: 788 On Thursday 01 March 2012 19:38:42 Kevin Buettner wrote: > The patch below updates the rx sim to print load statistics. I.e. > instead of printing nothing when the gdb "load" command is invoked, > it'll now do something like this: blah, just re-implementing more and more of common :/ > --- sim/rx/gdb-if.c 4 Jan 2012 08:28:24 -0000 1.13 > +++ sim/rx/gdb-if.c 2 Mar 2012 00:30:36 -0000 >=20 > if (abfd) > { > - rx_load (abfd); > + rx_load (abfd, 0); these should be NULL rather than 0 for pointers > --- sim/rx/load.c 4 Jan 2012 08:28:24 -0000 1.6 > +++ sim/rx/load.c 2 Mar 2012 00:30:36 -0000 > > +/* Given a file offset, look up the section name. */ > +static char * > +find_section_name_by_offset (bfd *abfd, file_ptr filepos) should return const char * -mike --nextPart5485370.o7cpk95fXh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJPUDyqAAoJEEFjO5/oN/WBmkEP/1SLpIQa/kwrzZAKst/IxZNX TbZqBPV+TTJNuJA3iQkiU2b1X+grqrFUiuUX17zcgb/EMXH1k3TWFpfEZJ85pcLB D3EIxCWT02Ear5XwchziW7CP+lcNYJRx8ja4mLHJVm992od0LGACXdR2+aOa4b8Y +mRvOw5XNzyZxk2fNwqUNyLpL5GfSKNQVANjin7EfD3Vdf1qw7cpN1lswZoP2ysC nsBJW1TRCnUj1H+WeGS3bGwjWifYp2L9OiZZ+ODSE+dfDlVdBWt6d1oaTKVi+VZj fzUii8pWumkxsc09fYs3neKU74L/cmr5MAYdDnfsDn6AVIRXYOtQPMMH3f5Av2G+ m1S6JtI2xu5BhG24I6aaOTadhO2dk3y7oNGjsW32+bitbzIEwn5MiVYMXlPiWu+B Cb9HW7kxKz6+lGYEAl5KliW+fjryBaVf9+/91vFblZx7p7FpkFv2NckqRVj+Cy5I /ReST/kuUwkxudXlqLRCM5klE/4wjyGJqK4fKcyzpiwYafpFP7wuq98sp2uN/zDA NfneZLGX2ls4jxpL2hUjzEJCc8+yPJCPb8KQyxg0eGd5Rgb6XspVNc4NSa4IrXvE 0vlfYHhXEzYzm9/eG35SR+teVneeg6IaNKIKDHye+guXVfw5KBgQ+z3QtQ0PKG/b AXUALFNMzdL5x9nOQ0a4 =4cBT -----END PGP SIGNATURE----- --nextPart5485370.o7cpk95fXh--