Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Abhay Kandpal <abhay@linux.ibm.com>
To: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: Andrew Burgess <aburgess@redhat.com>,
	"eliz@gnu.org" <eliz@gnu.org>,
	"cel@linux.ibm.com" <cel@linux.ibm.com>,
	Abhay Kandpal <Abhay.k@ibm.com>
Subject: Re: [PATCH v4 1/2] gdbserver: widen the stat fields returned by the vFile packets
Date: Mon, 2 Nov 2026 11:59:47 +0530	[thread overview]
Message-ID: <eb762868-cd9f-4315-9717-9b4607961c78@linux.ibm.com> (raw)
In-Reply-To: <8feccb0ff2a8a76d632cbe99e11b6ef8d23e8c46.camel@de.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 821 bytes --]

Hi Ulrich,

Thanks.  Good point; I'll change host_to_fileio_uint to take a
LONGEST, and update the callers' casts to match, in the next version.
I'll wait for Andrew's comments before sending it.

Thanks,
Abhay

On 29/10/26 22:26, Ulrich Weigand wrote:
> Abhay Kandpal<abhay@linux.ibm.com> wrote:
>
>>   static inline void
>>   host_to_fileio_uint (long num, fio_uint_t fnum)
>>   {
>> +  if ((ULONGEST) num > 0xffffffff)
>> +    warning (_("file-i/o: value %s does not fit in 32 bits and will
> be "
>> +	       "truncated"), plongest (num));
> "num" should now really be LONGEST in the API already,
> otherwise you have already have silently truncated on
> platforms where long is 32 bits.
>
> Otherwise this series now looks good to me, but please give
> Andrew time to comment as well.
>
> Bye,
> Ulrich

[-- Attachment #2: Type: text/html, Size: 1533 bytes --]

  reply	other threads:[~2026-11-02  6:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-29  9:21 [PATCH v4 0/2] Widen the stat fields in the remote protocol Abhay Kandpal
2026-10-29  9:21 ` [PATCH v4 1/2] gdbserver: widen the stat fields returned by the vFile packets Abhay Kandpal
2026-10-29 16:56   ` Ulrich Weigand
2026-11-02  6:29     ` Abhay Kandpal [this message]
2026-11-03 16:27   ` Andrew Burgess
2026-10-29  9:21 ` [PATCH v4 2/2] gdb: add stat64 and fstat64 to the F-packet file-i/o protocol Abhay Kandpal
2026-11-03 17:31   ` Andrew Burgess

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=eb762868-cd9f-4315-9717-9b4607961c78@linux.ibm.com \
    --to=abhay@linux.ibm.com \
    --cc=Abhay.k@ibm.com \
    --cc=Ulrich.Weigand@de.ibm.com \
    --cc=aburgess@redhat.com \
    --cc=cel@linux.ibm.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /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