Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
To: Jiangshuai Li <jiangshuai_li@linux.alibaba.com>,
	gdb-patches@sourceware.org
Subject: Re: [PATCH v3] gdb/csky support .reg2 for kernel 4.x and later
Date: Mon, 8 Aug 2022 09:32:33 +0200	[thread overview]
Message-ID: <ff654668-7400-9c4b-3854-e54b67e53939@suse.de> (raw)
In-Reply-To: <20220801024015.3704-1-jiangshuai_li@linux.alibaba.com>

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

  reply	other threads:[~2022-08-08  7:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-01  2:40 Jiangshuai Li via Gdb-patches
2022-08-08  7:32 ` Tom de Vries via Gdb-patches [this message]
2022-08-09  2:29 jiangshuai_li via Gdb-patches
2022-08-09  7:56 ` Tom de Vries via Gdb-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff654668-7400-9c4b-3854-e54b67e53939@suse.de \
    --to=gdb-patches@sourceware.org \
    --cc=jiangshuai_li@linux.alibaba.com \
    --cc=tdevries@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox