From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YM1VMSe88GIdqiIAWB0awg (envelope-from ) for ; Mon, 08 Aug 2022 03:32:55 -0400 Received: by simark.ca (Postfix, from userid 112) id BCFA21EA05; Mon, 8 Aug 2022 03:32:55 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=syraJBrW; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_DYNAMIC, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 450531E745 for ; Mon, 8 Aug 2022 03:32:55 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6D8933857363 for ; Mon, 8 Aug 2022 07:32:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D8933857363 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1659943974; bh=x5epPneQnUw6VY5mDIYvRkkytDacMKAPS8MvQ3JiMg8=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=syraJBrWrR76BpFGG2jZXvghgpN6vU3j3CS0N8kxmmafk6dIyxVUAl4n8z8kPAjs1 8ElfL7oIamDUr3uzbwGTsId3x2AbBvJdOpESr/NiR+VsALIM84MpFWURyi1u7PYIwt YIlTDV9rbTYt5odgie59LPHgyDOhCb0P9YiMhhxY= Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id C29793858287 for ; Mon, 8 Aug 2022 07:32:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C29793858287 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id F1AA920206; Mon, 8 Aug 2022 07:32:33 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id D644813A7C; Mon, 8 Aug 2022 07:32:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id k9gVMhG88GK/NgAAMHmgww (envelope-from ); Mon, 08 Aug 2022 07:32:33 +0000 Message-ID: Date: Mon, 8 Aug 2022 09:32:33 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v3] gdb/csky support .reg2 for kernel 4.x and later Content-Language: en-US To: Jiangshuai Li , gdb-patches@sourceware.org References: <20220801024015.3704-1-jiangshuai_li@linux.alibaba.com> In-Reply-To: <20220801024015.3704-1-jiangshuai_li@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 8/1/22 04:40, Jiangshuai Li via Gdb-patches wrote: > + warning (_("Unknow size %ld of section .reg2, can not get value" > + " of float registers."), len); This broke the build on the gdb-armhf-ubuntu20_04 builder ( see https://builder.sourceware.org/buildbot/#/builders/170/builds/246 ): ... ../../binutils-gdb/gdb/csky-linux-tdep.c: In function ‘void csky_supply_fregset(const regset*, regcache*, int, const void*, size_t)’: ../../binutils-gdb/gdb/csky-linux-tdep.c:194:18: error: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=] 194 | warning (_("Unknow size %ld of section .reg2, can not get value" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 195 | " of float registers."), len); ... There are uses of %z in gdb, but very few, so I suppose the way to fix this is to use %s and pulongest. Thanks, - Tom