From: Tom Tromey <tromey@adacore.com>
To: Andrew Burgess <aburgess@redhat.com>
Cc: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] Use bool in ada_add_all_symbols
Date: Fri, 08 May 2026 07:53:13 -0600 [thread overview]
Message-ID: <87fr42nh2u.fsf@tromey.com> (raw)
In-Reply-To: <87cxz6dq09.fsf@redhat.com> (Andrew Burgess's message of "Fri, 08 May 2026 13:50:30 +0100")
>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:
>> - FULL_SEARCH is non-zero, enclosing scope and in global scopes,
>> + FULL_SEARCH is true, enclosing scope and in global scopes,
>> returning the number of matches. Add these to RESULT.
>>
>> - When FULL_SEARCH is non-zero, any non-function/non-enumeral
>> + When FULL_SEARCH is false, any non-function/non-enumeral
Andrew> I found the description in this comment for what FULL_SEARCH actually
Andrew> does really confusing.
Andrew> I noticed that you replaced non-zero with false not true, which is an
Andrew> inversion of the logic. I thought I'd just read the comment and check
Andrew> the code, then I'd know if this was a fix or not. But I cannot tell
Andrew> from the comment what the code is supposed to do, so I'm stuck.
Andrew> All I know is that the code didn't change, but the comment has flipped
Andrew> logic, and the commit message doesn't call this out as a fix, so I
Andrew> wanted to check with you.
Yeah, that was just a mistake in the comment update.
>> - When full_search is non-zero, any non-function/non-enumeral
>> + When full_search is false, any non-function/non-enumeral
Andrew> While here it would be good to capitalise FULL_SEARCH. Also non-zero
Andrew> became false here instead of true, as with ada_add_all_symbols, is this
Andrew> intentional?
I fixed this too, it was not intentional.
Tom
next prev parent reply other threads:[~2026-05-08 13:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-24 14:50 [PATCH 0/2] More bool in ada-lang.c Tom Tromey
2026-04-24 14:50 ` [PATCH 1/2] Use bool in ada_add_all_symbols Tom Tromey
2026-05-08 12:50 ` Andrew Burgess
2026-05-08 13:53 ` Tom Tromey [this message]
2026-04-24 14:50 ` [PATCH 2/2] Use bool in map_matching_symbols Tom Tromey
2026-05-08 13:10 ` Andrew Burgess
2026-05-08 13:43 ` Tom Tromey
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=87fr42nh2u.fsf@tromey.com \
--to=tromey@adacore.com \
--cc=aburgess@redhat.com \
--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