Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
To: Tom Tromey <tom@tromey.com>
Cc: "Aktemur, Baris" <TankutBaris.Aktemur@amd.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	 Luis <luis.machado.foss@gmail.com>
Subject: Re: [PATCH] GDB: aarch64: Fix inferior function call if GCS is present but disabled
Date: Wed, 22 Jul 2026 20:23:54 +0000	[thread overview]
Message-ID: <87zezivkmd.fsf@linaro.org> (raw)
In-Reply-To: <87h5lswb58.fsf@tromey.com> (Tom Tromey's message of "Tue, 21 Jul 2026 10:38:43 -0600")

Tom Tromey <tom@tromey.com> writes:

>>>>>> Aktemur, Baris <TankutBaris.Aktemur@amd.com> writes:
>
>>> +  gdbarch_get_shadow_stack_pointer (gdbarch, regcache, gcs_is_enabled);
>
>> Some analyzer tools may flag this because the return value is not being used.
>> Maybe put a `(void)` in front to indicate the return value is being ignored
>> deliberately.
>
> FWIW gdb does not normally do this unless the function is specially
> marked.

I found some places in GDB where we do this even though the called
function isn't specially marked (e.g., calls to record_stop in
gdb/record.c, and call to PyGILState_Ensure in gdb/python/python.c)
so ahead with the `(void)`.

I can push a patch removing it if anyone wants.

-- 
Thiago
(he/him)

  reply	other threads:[~2026-07-22 20:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08  6:03 Thiago Jung Bauermann
2026-07-08  7:50 ` Aktemur, Baris
2026-07-08 19:43   ` Thiago Jung Bauermann
2026-07-21 16:38   ` Tom Tromey
2026-07-22 20:23     ` Thiago Jung Bauermann [this message]
2026-07-22 22:27       ` Tom Tromey
2026-07-19  8:57 ` Luis
2026-07-22 19:59   ` Thiago Jung Bauermann

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=87zezivkmd.fsf@linaro.org \
    --to=thiago.bauermann@linaro.org \
    --cc=TankutBaris.Aktemur@amd.com \
    --cc=gdb-patches@sourceware.org \
    --cc=luis.machado.foss@gmail.com \
    --cc=tom@tromey.com \
    /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