Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
To: Andreas Schwab <schwab@linux-m68k.org>,
	Tom de Vries via Gdb-patches <gdb-patches@sourceware.org>
Cc: Pedro Alves <pedro@palves.net>
Subject: Re: [PATCH][gdb/c] Fix printing -2147483648
Date: Mon, 23 May 2022 13:14:19 +0200	[thread overview]
Message-ID: <ae8b01d4-ba08-c379-f6a7-6c15858d6efc@suse.de> (raw)
In-Reply-To: <87zgjemzsu.fsf@igel.home>

On 5/18/22 21:00, Andreas Schwab wrote:
> On Mai 18 2022, Tom de Vries via Gdb-patches wrote:
> 
>> +static bool
>> +fits_in_type (int n_sign, ULONGEST n, int type_bits, bool type_signed_p)
> 
> n_sign is always 1, you can just remove it.
> 

I ended up using this function here ( 
https://sourceware.org/pipermail/gdb-patches/2022-May/189313.html ) with 
n_sign also being -1.

>> +  if (have_int && have_signed && fits_in_type (1, n, int_bits, 1))
> 
> type_signed_p is a bool, so you should use true and false.
> 

Ack, fixed in resubmission here ( 
https://sourceware.org/pipermail/gdb-patches/2022-May/189311.html ).

Thanks,
- Tom

  reply	other threads:[~2022-05-23 11:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-18 17:38 Tom de Vries via Gdb-patches
2022-05-18 19:00 ` Andreas Schwab
2022-05-23 11:14   ` Tom de Vries via Gdb-patches [this message]
2022-05-18 19:15 ` Pedro Alves
2022-05-23 11:16   ` 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=ae8b01d4-ba08-c379-f6a7-6c15858d6efc@suse.de \
    --to=gdb-patches@sourceware.org \
    --cc=pedro@palves.net \
    --cc=schwab@linux-m68k.org \
    --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