From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id sa/7N8pC7GhJ7SwAWB0awg (envelope-from ) for ; Sun, 12 Oct 2025 20:07:38 -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=KGAq3tC8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C09951E04C; Sun, 12 Oct 2025 20:07:38 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,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 326AF1E04C for ; Sun, 12 Oct 2025 20:07:37 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 83B293858C98 for ; Mon, 13 Oct 2025 00:07:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83B293858C98 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=KGAq3tC8 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by sourceware.org (Postfix) with ESMTPS id C4F063858D1E for ; Mon, 13 Oct 2025 00:06:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4F063858D1E 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 C4F063858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760314016; cv=none; b=syPBqPgMNzdvaRWwl9xMOGemQFy2gQ8cr+Mj1UtqnK+jM0Is1NWVQgK2XIjQNLwS+dOKcpuxGkKjSGbWQAIwT2BWs4Th8srTNSHp2HDuYDkulrylFFu37MjdUPrb4EVyXa4wkZi2aInIoUvwsUqywHCd085P4yw9JBpomjTxq6o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760314016; c=relaxed/simple; bh=QyhGipBac/8sjfdqxtYzzpTOYbXR3mxJrNEA3HG6ts8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=CaKz4BTLmmBdCGRQEZwjqoUERTxiFdtknugXnEJ3DAruvbU0946y7qgiy0W+7rsXpCKfoENzrM2TuK80qJpnacSiiVx37wP3ZzPzASbNWdGQZJX3YKknukCr/mGJckeaW9PqGCqDJiBpbAz6A1x5ZQjQizJSVxaoHZ1OT4XOpyg= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C4F063858D1E Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-78af743c232so3264030b3a.1 for ; Sun, 12 Oct 2025 17:06:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1760314015; x=1760918815; darn=sourceware.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=j0ZLr3/u7Q9OeR08XUl6YtqHr5IuwJnqiEjtDj2YF+c=; b=KGAq3tC8kHeY4hHE4Br1tdXbohYtSBgZT3rOgnLPO/jg9KgHlwJCsj/vJ+wbJtt2ee wf3lw4CEG9+9qeUegZArROPczMRXlEAjvpPYYy8OoeTA2jQfjQH1HKfDKrEpej90wlrT v0tfeQUlaAeCERQm5rh2pQE8DLnhMy1PUaaczAtCfBPA/VVt93J55OCXvGlzF6eONUmL s6R2q70NYgzoCYcYShkSt1bKriRluCFdHzAQx7HCvE66AOMduebDOekbnC6h9v/pvDlN tBBkCqLXJSvOWb06C/BlwMC9FXe9+AfIr6WIOFFZFj/54+Co+rukVH2chbAzRQFt9Lc/ AiSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760314015; x=1760918815; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=j0ZLr3/u7Q9OeR08XUl6YtqHr5IuwJnqiEjtDj2YF+c=; b=e8yj6ZHBrj/AwRcAesylaw6TzMQp2JwNyeBQ4o6y0gv93EwfeAioQ/bo2P+fGResr0 +jP3YSciduCiXUy5ZJnFhvNQPOoqvkxi3hF8zh/7w3LQixM/jSl4bcEY1/UII0gUQqR1 MwGTVz4bsdWUuSHB+8nMazSaPC0PjKDP1ru/agJo8r5TTfVP8G7TaNi3AqRBfxmPqMxj rkdDNyKV8KIdCHkLiWBKd1a0lP0QFRg2zY81o8kSrO0tzRRdxvXg1fGRIkOsYiuDyU3/ MtTU3pM/DEPxK++YvIia6Px8e3lYNHfos9sseILSg5UpUpIgsJnY+YmL2GJ94TXnxqEr 04iQ== X-Forwarded-Encrypted: i=1; AJvYcCVFEKS0FOtAZQRwFxFPmQUM4mN0BNyHdhkdkhNYH1mIV/guB03WBCIub2SwXeUNyGWiLg27xOk9+AKcgw==@sourceware.org X-Gm-Message-State: AOJu0YwpoOFFQYn7kcUYq9FTGylNac/rQ6UsbgypWxtr3K2P9/tJtmUY 4+TqZ+nzW8Sp4GMX+liWlCuFpJx4JaJS6paHR+kIO+DMyfhSrseCOgTsSQ429OifR20= X-Gm-Gg: ASbGncsBG3eax6PYO22m+1lpO7gyhllTKEIpeyusWXODcRFGgrKVt4SoWXcBl5HnVq5 Pw3P7alX47HuKdpOH2LETKcRGQ0+ZhxcrIkkT4nMirpPY5VyM76v7tC+/qnsK/LldsXlYTekMfw L8KqJY4FzhfOVesgGcCSepdyQU9Dz+Hc0nIHrs+mTTQSuFqr0G32xLqrXEN1hJPEZsFhJztsZho X8izXY662lLTL74XTMpFLPYO5czdYfRkRmoopphiMbvJ7AJ7LuIwyoRHqmF9HxwT1BWdND4nsL1 SLsgu1oKHzPqMGEAKMUHWv23GM+mSAi83e7nXYDTWvQaHZvhwrS1k1kiXAcc97p0sHjMycSRIIv 7hl5WSZpwmYnz7B4EutFTfmTzEkgIUo5el+fRIiWY2+qFCckGuldmDwPmi9y21RyjCw== X-Google-Smtp-Source: AGHT+IFklVGEjsQ5OJiWS20jqU7HkM2SjPwWU0Rub7uoGH73cQaAtADIvhTn3Ersjfs/3y+/69gnnQ== X-Received: by 2002:a05:6a00:1146:b0:782:2f62:7059 with SMTP id d2e1a72fcca58-79387636592mr20617831b3a.22.1760314014681; Sun, 12 Oct 2025 17:06:54 -0700 (PDT) Received: from localhost ([2804:14d:7e39:88d6:d9ee:d9e8:b4ea:6b6f]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7992d0e134fsm9475110b3a.58.2025.10.12.17.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Oct 2025 17:06:54 -0700 (PDT) From: Thiago Jung Bauermann To: "Schimpe, Christina" Cc: Tom Tromey , "gdb-patches@sourceware.org" Subject: Re: [PATCH 9/9] gdb, mi: Add -shadow-stack-list-frames command In-Reply-To: (Christina Schimpe's message of "Sun, 12 Oct 2025 19:54:16 +0000") References: <20250923111842.4091694-1-christina.schimpe@intel.com> <20250923111842.4091694-10-christina.schimpe@intel.com> <87347z68pj.fsf@tromey.com> User-Agent: mu4e 1.12.11; emacs 30.2 Date: Sun, 12 Oct 2025 21:06:52 -0300 Message-ID: <87cy6rpsv7.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 "Schimpe, Christina" writes: >> -----Original Message----- >> From: Tom Tromey >> Sent: Friday, October 3, 2025 10:18 PM >> To: Schimpe, Christina >> Cc: gdb-patches@sourceware.org >> Subject: Re: [PATCH 9/9] gdb, mi: Add -shadow-stack-list-frames command >> >> >>>>> "Christina" == Christina Schimpe writes: >> >> Christina> Add the mi command for the subcommand "backtrace shadow". >> Christina> Similar to the mi interface for the ordinary backtrace >> Christina> command, support low-frame and high-frame as command line >> parameters. >> >> Christina> + if (uiout->is_mi_like_p ()) >> Christina> + { >> Christina> + uiout->field_string >> Christina> + ("arch", (gdbarch_bfd_arch_info (gdbarch))- >> >printable_name); >> Christina> + } >> >> I was wondering if the arch field is really useful to clients. > > The commit message of commit "MI: Print frame architecture when printing frames on an MI > channel", > which added the field for -stack-list-frames, states: > > "This is useful for MI clients that need to know the architecture in > order to perform further analysis, for example to use their own > disassembler to analyze machine code." > > So I think we should have it for the mi command of "bt shadow" as well. The old PowerPC Cell processor was an heterogeneous system (PowerPC main processor and SPU accelerators) and could have frames of both those architectures in a single stack, so this field would be useful in that case. I think there are other targets where this can happen, but I can't remember the details right now. Perhaps at least one of the GPU backends? -- Thiago