From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id wDZ6BfomYWrLziYAWB0awg (envelope-from ) for ; Wed, 22 Jul 2026 16:24:26 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Unnrri3d; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 01DCD1E09E; Wed, 22 Jul 2026 16:24:25 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 43D2A1E033 for ; Wed, 22 Jul 2026 16:24:25 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C83CE4BA2E32 for ; Wed, 22 Jul 2026 20:24:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C83CE4BA2E32 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Unnrri3d Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id 254B14BA2E0B for ; Wed, 22 Jul 2026 20:24:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 254B14BA2E0B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 254B14BA2E0B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784751840; cv=none; b=rPuTx+UCPtoQnls7kI/LFPpoLNbN9kZPnwEshj2iaWxQLDLYuuTb3YaUj2qTv1pXznR35JdgwmkdkIYqPRjXjirjCPQQZklMqVofg9hPWsiPgTLHgpIgU//pHnUwH2/OIYwFnd66w4JLPbFuOHlayZ3wWtgPTZtWY7tJD7nrhBI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784751840; c=relaxed/simple; bh=MMQVjCDkiZTFZ1aWUpN/Ld2SPI5Kcf/EG5/fAfgGv00=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Ez5u2+yx04C/S0KqHBfMrOncht8CIuk24ABaOOvr3PUqo9H6vxdMvg+LLieZn+opUNa4XhzFTi4THUcgMgNledeLGtqw5dUCb+rZlUG0N8I0awkLxAT/bvmRRhmL3OeCCexvZkYKDGjbP41Yw78lINSxZ4UZ+d3UW3F+hlzg5Gw= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=Unnrri3d DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 254B14BA2E0B Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-c9e607d81fcso6072542a12.2 for ; Wed, 22 Jul 2026 13:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1784751839; x=1785356639; darn=sourceware.org; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=z4K/tyeA1Qo/TNFDLreWeIFVTziEqIn6Jc57QshfK2E=; b=Unnrri3dflaF1r5Gc5+r0+rX+1RG/pKkKJeEqG48P4/5HfR4/clGwucmkzmEWV59g9 pdCP+MKslVN7qrzDlPFWlFswESXWUQAgGD+3lxSx/gKa2tZ8OfELBUALHHxL0zOg9rK1 txPPmrGO7wnL4CD4UmmwIdpOS6a+htmqZN6VzCSG2SAOsLk2MJy9vMXV2LverM0UKqTn o7RBSBTaJiZvSBCSxcMIjPlelLfTtzvXmPU9alA8dTmPgonKNeSGbT4bhFGlP5EycMB8 vzPQHAskULPJgaK3qy2J0ZHnnJU0L0+wt77q/Q1Q/1f1Yr2+SknsFdbvPeZzK6Gy7xrq 3M4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784751839; x=1785356639; h=content-type:mime-version:message-id:date:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=z4K/tyeA1Qo/TNFDLreWeIFVTziEqIn6Jc57QshfK2E=; b=O3M68UIZ/usgpAv4JySJRnRb3fHYFVt/r0CzkK3NL07dN9N+eOpr+E2NF986Tt5L7Q mdTLZ1TeUfDY+0DeiJrLCTtbPiBOlb5GaW26ecVyoXusgVe3EH9kkXjFYcCe66ECGscJ iLr5orWLQyvhndojGgfbStDB5dQSGjUCUzmhgLpGV72/Fx4Mxem7XXfsf2b6Yi9gUPuB s0g0B9N5knWKBmKhIKbGoyTwfEhh/B2UVPzoL9wyGdTE4ARJ2FKkoU2bAFZg30c7Ww6p r2QoyZiO+RxhN3JZgq5kpBDRDTRoAoukHk6PpvbsTxBB4VvLMDQvsy1ahSGFpdvDw9Hu prmQ== X-Forwarded-Encrypted: i=1; AHgh+Rr/B3OnjSZ2Unekh25QbBD/hVlrT1IdAN0cK/l1ryTITRkwTQNW0Tv5bSy1Y0lsbTX30AwQAgFyGXPolg==@sourceware.org X-Gm-Message-State: AOJu0Yw5Q21hxnnXAUg0zUNkOuVjju6sJo+9ldRgl5z1WgYWSkGp/2d+ XL7ywHnQPK+Du7DHc+a87u0r0oymZebMGewNlxHqtiH0D3JrBGRDWvC8zGKuJTP3Nf0= X-Gm-Gg: AR+sD12hF3c1i9KRLGO7xhdpIAr9+f2T5C2cGDgeM105HPedsS/3DXYFlD0WCoMw1Py QF3NoWVDfZGU2eJ5BsIrFfV6OaDM/qpAxt6/qDvkVkNEiuw+AqZqoX79D67uNVdkaIoGWzHq+UG Wwo2gs08N4feIlo9bHJN2K6pOBjcMQ3hFJMjqqWBZHs35sB6nouIE4a4wl42lwUWcUYWIjOZUkn OBgGI4eRCN+STYvxN/yK5zwZww626aEPR5ESJo2iWePnqFS72bXabxAHd5bKKd2H9k1wsgvSyBj HIoDuu1qtxZoBI3Z34qh131kZduNsAoYuNpclcjiojVkiVqQ3lAyCNxq5V5OMM4P1Ikj3GfNloS d3Zcbnu6jZ+WdERA5tHCjTDxEzEHjgXZt9LyLR+I4THNbkmI6HIM5ZQHwiXcs2tFZ+kI865Mh1A 2iAIoEbv7aTF8r X-Received: by 2002:a05:6a20:9398:b0:3bf:9cbd:9a39 with SMTP id adf61e73a8af0-3c44afcdf9fmr46276637.10.1784751838943; Wed, 22 Jul 2026 13:23:58 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13d130cc5ebsm11419081c88.12.2026.07.22.13.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2026 13:23:57 -0700 (PDT) From: Thiago Jung Bauermann To: Tom Tromey Cc: "Aktemur, Baris" , "gdb-patches@sourceware.org" , Luis Subject: Re: [PATCH] GDB: aarch64: Fix inferior function call if GCS is present but disabled In-Reply-To: <87h5lswb58.fsf@tromey.com> (Tom Tromey's message of "Tue, 21 Jul 2026 10:38:43 -0600") References: <20260708060331.347616-1-thiago.bauermann@linaro.org> <87h5lswb58.fsf@tromey.com> User-Agent: mu4e 1.14.2; emacs 30.2 Date: Wed, 22 Jul 2026 20:23:54 +0000 Message-ID: <87zezivkmd.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Tom Tromey writes: >>>>>> Aktemur, Baris 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)