From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27824 invoked by alias); 9 Apr 2013 02:10:40 -0000 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 Received: (qmail 27806 invoked by uid 89); 9 Apr 2013 02:10:39 -0000 X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_BJ autolearn=no version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 09 Apr 2013 02:10:39 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UPO17-0005ZU-6Q from Sandra_Loosemore@mentor.com ; Mon, 08 Apr 2013 19:10:37 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Mon, 8 Apr 2013 19:10:36 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Mon, 8 Apr 2013 19:10:36 -0700 Message-ID: <5163788A.2060107@codesourcery.com> Date: Tue, 09 Apr 2013 12:47:00 -0000 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tom Tromey CC: Subject: Re: [0/10] RFC: remove obj_section field References: <87txp98l6a.fsf@fleche.redhat.com> <878v4su7rc.fsf@fleche.redhat.com> <51633B20.206@codesourcery.com> <87y5csqzbm.fsf@fleche.redhat.com> In-Reply-To: <87y5csqzbm.fsf@fleche.redhat.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-04/txt/msg00210.txt.bz2 On 04/08/2013 07:15 PM, Tom Tromey wrote: >>>>>> "Sandra" == Sandra Loosemore writes: > > Sandra> I'm seeing a build error: > Sandra> .../gdb/symmisc.c: In function 'dump_msymbols': > Sandra> .../gdb/symmisc.c:271:10: error: format '%ld' expects argument of type > Sandra> long int', but argument 3 has type 'int' [-Werror=format] > > Oops, sorry about that. Please try the appended. > > Tom > > --- symmisc.c.~1.95.~ 2013-04-08 14:18:45.764743872 -0600 > +++ symmisc.c 2013-04-08 19:13:07.605692663 -0600 > @@ -268,7 +268,7 @@ > section->the_bfd_section)); > else > fprintf_filtered (outfile, " spurious section %ld", > - section - objfile->sections); > + (long) (section - objfile->sections)); > } > if (SYMBOL_DEMANGLED_NAME (msymbol) != NULL) > { > This builds, at least. :-) Thanks. -Sandra