From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ny11AtdB1WjG0xIAWB0awg (envelope-from ) for ; Thu, 25 Sep 2025 09:21:27 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=RVITKgRq; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E612C1E047; Thu, 25 Sep 2025 09:21:26 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 133601E047 for ; Thu, 25 Sep 2025 09:21:26 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 88EC23858294 for ; Thu, 25 Sep 2025 13:21:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88EC23858294 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=RVITKgRq Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 22E523858433 for ; Thu, 25 Sep 2025 13:19:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 22E523858433 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 22E523858433 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758806396; cv=none; b=DzSYseCrbzbUoe8LUx5wIT8w0yrvl6041zZLPctrO+q/9G79VtNjGwqFw8Os1jI5Af+zoj30KGMZst53bs5a+IXku5Re5wVMCep70lTGs9ar6Est9lixB2SITiRbfbQBCDe8tRjE2tZEGEUYWCE47jyJTqIk1hOTkjhbhqihuCw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1758806396; c=relaxed/simple; bh=OIy/Np1FrpUjUdO/ZjwxOtHqH+efB9+zIyLYYz48MyI=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=e3s9luc2i3LZ5D85FcGCFPDjlEIhigTf6bo4JttXgHTJvWELijFCY6b99XzcgqwRBCEmFMiIuQFPxRz+KTmSTH1pYcDTN1q/+/bK0X78QHO2mjvEmqy3m5rcYwxqcrHwAXJ4u9KxZppwd6gp0W73UcmkRqkk+YcdYNE9lgYMj7Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22E523858433 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v1lt2-0001qd-NC; Thu, 25 Sep 2025 09:19:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4Cg/U00cYOZRo5Ojr0A1Sg9qkC/aWn9yFR2Y2bkVuw8=; b=RVITKgRq3Z2o ZrBbgi/kOAuC3uu+OYFkeHedju55WTr3m8OBafxeWuSX5J5KvkP6SaHOYMTCJkEBWLK4L6VRQBnWw Lang2jUvVxlFHwXM/F2nrEr/Y4k1HLYuuH2HDohw/hZPO8ZXKsWV/z+vWNJzbm0i4G+oNIiOvuTvo pZ3mNl1kxye3h8CJIek5Baq2nZjCATgNi8VdKz3SW6rJyiyVX9Ie+jjiGpFaPRS1KK/th/SCXlgkr lkghSE+UybkEGCJI5hM52WVNWzBGWtu7rkQpxofvBGU1whD2Q4rkOEBpHZ0SGPG8jJwQYyK4kwqLq /MO8WXYzcVqSG50QDP9sQQ==; Date: Thu, 25 Sep 2025 16:19:46 +0300 Message-Id: <86plbebrf1.fsf@gnu.org> From: Eli Zaretskii To: "Schimpe, Christina" Cc: gdb-patches@sourceware.org, thiago.bauermann@linaro.org In-Reply-To: (christina.schimpe@intel.com) Subject: Re: [PATCH 6/9] gdb: Implement 'bt shadow' to print the shadow stack backtrace. References: <20250923111842.4091694-1-christina.schimpe@intel.com> <20250923111842.4091694-7-christina.schimpe@intel.com> <86y0q5crwq.fsf@gnu.org> 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 > From: "Schimpe, Christina" > CC: "gdb-patches@sourceware.org" , "Thiago Jung > Bauermann" > Date: Thu, 25 Sep 2025 11:06:32 +0000 > > > > (gdb) help bt shadow > > > Print backtrace of all shadow stack frames, or innermost COUNT frames. > > > Usage: backtrace shadow [OPTION]... [COUNT | -COUNT] > > > > Thanks, but I wonder if this UI is the best we can come up with. > > The "backtrace" command doesn't currently have non-option arguments > > except COUNT. > > Hm, not sure if I fully understand what you mean by non-option arguments. > "bt shadow" does not introduce more non-option arguments, except if you say > that "shadow" itself is interpreted as "non-option" argument. That's what I'm saying, yes. > > We have just got rid of qualifier arguments like "full" > > and "hide". Instead of introducing qualifier arguments anew, why not go the > > way of thread-related commands and add a new command "shadow", so the > > user could say "shadow backtrace" and maybe in the future also other sub- > > commands? > > This has been discussed in a thread years ago: > https://sourceware.org/pipermail/gdb/2023-December/051024.html > The direction was to make it part of the ordinary bt command. OK, if that's what the others want...