From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14875 invoked by alias); 26 Nov 2011 19:39:15 -0000 Received: (qmail 14867 invoked by uid 22791); 26 Nov 2011 19:39:14 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from shards.monkeyblade.net (HELO shards.monkeyblade.net) (198.137.202.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 26 Nov 2011 19:38:59 +0000 Received: from localhost (cpe-66-65-61-233.nyc.res.rr.com [66.65.61.233]) (authenticated bits=0) by shards.monkeyblade.net (8.14.4/8.14.4) with ESMTP id pAQJct1q005015 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 26 Nov 2011 11:38:58 -0800 Date: Sat, 26 Nov 2011 19:39:00 -0000 Message-Id: <20111126.143855.1966723588620210024.davem@davemloft.net> To: gdb-patches@sourceware.org Subject: [PATCH] Fix build on sparc From: David Miller Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2011-11/txt/msg00712.txt.bz2 sprintf_vma() expands to a printf format string appropriate for a bfd_vma type, so the only proper cast is to that exact type. This fixes the build for me on sparc-*-linux*. Ok to commit? gdb/ 2011-11-26 David S. Miller * remote.c (remote_get_tracepoint_status): Fix sprintf_vma() arg cast. diff --git a/gdb/remote.c b/gdb/remote.c index 8fa5c1a..18a3580 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -10249,7 +10249,7 @@ remote_get_tracepoint_status (struct breakpoint *bp, { utp->hit_count = 0; utp->traceframe_usage = 0; - sprintf_vma (addrbuf, (long unsigned int) utp->addr); + sprintf_vma (addrbuf, (bfd_vma) utp->addr); sprintf (rs->buf, "qTP:%x:%s", utp->number, addrbuf); putpkt (rs->buf); reply = remote_get_noisy_reply (&target_buf, &target_buf_size);