From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id idyMLBAnmWojLSMAWB0awg (envelope-from ) for ; Thu, 03 Sep 2026 03:51:44 -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=uiKsbv2A; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B06D71E166; Thu, 03 Sep 2026 03:51:44 -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 [38.145.34.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 A8B971E09B for ; Thu, 03 Sep 2026 03:51:43 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 409304BA9036 for ; Thu, 3 Sep 2026 07:51:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 409304BA9036 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=uiKsbv2A Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) by sourceware.org (Postfix) with ESMTPS id 717BC4BA2E04 for ; Thu, 3 Sep 2026 07:51:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 717BC4BA2E04 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 717BC4BA2E04 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1134 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788421880; cv=none; b=DhrKLIjN6y2xUXoItTzmWT0flNvkHDcqQUXqC9BuiDWMVDVuUhDY19inLhlgp4QIALeQNVsAYIXkFEZ3JmbVRcOiZ31TSE438ksWlqPtxPQu5bzXm8QTi7ir/+r+cJyULznmflV6bTWG9b1zToc6/VgDhVUG/I5XVshsJy9+qKQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788421880; c=relaxed/simple; bh=5hGn2rn9/AdViMzFxgP4qGsd3GUrSChgEOWGBo/8hqU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QiZGPYhI/OczKhnboQ5X9RE368EvN0eE9sO9CM7l0s/dsU7AEIcPuiSrpsMWeYeu+4aIej6AZ2OWOExpzIg5oj49rYnGBisq0IReCsojrS7bjTbK0QTyjMW6+i4B69M/gFSo1wPV0xMzxUJJ/jdDNbG/TJJ4pg2bN+yCooxiRPw= 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=uiKsbv2A DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 717BC4BA2E04 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-8664769db58so24120027b3.3 for ; Thu, 03 Sep 2026 00:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1788421880; x=1789026680; 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=mY++KTZJuzhK8YfHQmZ0k5N3lrbF1E7Pm1YhaNJN07c=; b=uiKsbv2AdNHTu7+r//Sz9IJiswVB08i42R0puehlRQKPctnMpn8dy5ujMo2357+D9p zSaXE4+X6hXjvkH3G5zCglZXmFYyAAb677Ch/r9b7ZIEKOq9LlhYTTklJvvivZM/exTS qxVo9KVNrhBey263nkIqrRVU589uCe0VB8/wwG1jOIX0bzAP/RJO6u8s0yfldT9lc6vb c6W+Wu0bjcgNbvAon4VBNV7TCteDWtfEvN57H6VG9bYxo3gYV46zMJc8YgimH7bXVscy h/uPeacZfrR9v/v+Ck847+6PiLScBLLLlolVIHzLL1c4RvA5NOejA4wblhLBDR39LBWn qWUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788421880; x=1789026680; 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=mY++KTZJuzhK8YfHQmZ0k5N3lrbF1E7Pm1YhaNJN07c=; b=C17nfdaIDmjrSVjfB7Tgyo9DTdXlGUpqzc8mvkV3HXlHMU2bKNvGk3EFiTVeS17eLd H0/8rW5GD2xm7y+SBvJY7Z6nUkASFRXKWSW7DA1+0BS/hdgGgAOVua0Lxch06w+tD33U +SCY5Cph62IQQqOqYETgsWU3xlZRVe8R8LhxaEFAddv26mKBKRzLpsMznS10SV5XMZxW xS/i6mHqo1fr7C4WXdmqN5fpwV7T/dqubiXsCEO2F8+u9zhM/y+6lg13L+b0U2wTdw2b dbrP9wJt3FTF5l6H/gfCdJex4mE3Qv1vfJUkemaVtrER4i0q435eUB8v3X1u8jrTdkdp Rffw== X-Gm-Message-State: AFuF++miMbxmlvRxZUYTaHD9E2mpIuHCEErTKrbb5CLAXVjml4aceLrE ykEKZ11X8GZhodO2Scs7A6SpUu6KAg0V/HiEqi40RcP9uxW2HZgwQnSZMlp5Mh0FhK4= X-Gm-Gg: AYBFou2VKdgvabnW74Z0j5SgyrfhgLKbk6E5i4QLhzOvm9Ad56ePJGlyz0d2Fi8FgZz ngaR1TiQuCmcEmIJTD/XbgwNu7LUThIIpeuEem9pNgUiCBTAanZaky6yuXGpuA5oUhtYBCT4i3v iZ4S7BIgNli8Nmj57KW9FMuSyLCh5Nk/0VoEmfXJaTvQBBaBstfJRJiAfxUPFyQ0b/I+LE7o4+0 QrdLlqOB6xwVtyziHQiGXdQkr7KBhaGpzvL7BGS7uRGP3YwRLcqFOVdwuRc/kyNf6Z8wjASOBbA VXWDfekCa+Lol2Z5E4cffCEYAhrR/p30w8UuU9Dqip6efcymBLmO24owewsue66flIAKI5iSWgC YiXUVm1SL5G+VDK/S6GbtJfNkDJG4CynPpp8OQhRcoiG+rq9tgroZLamh3ofSlZl7L0Dg5D4i1U vWhYK/LJpefhBUNE3++Ab8YI3wWPHGTM7lS/cBZU4ryxLCpl50MzhJc7nOOHXFeRdUK+cuK5M= X-Received: by 2002:a05:690c:16:b0:858:d554:79e4 with SMTP id 00721157ae682-86c522182ecmr48965607b3.20.1788421879652; Thu, 03 Sep 2026 00:51:19 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 00721157ae682-86c17840d87sm34716657b3.27.2026.09.03.00.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2026 00:51:19 -0700 (PDT) From: Thiago Jung Bauermann To: Christina Schimpe Cc: gdb-patches@sourceware.org, tom@tromey.com Subject: Re: [PATCH v4 11/13] gdb: Enable inferior calls in the shadow stack backtrace. In-Reply-To: <20260708143639.2214689-12-christina.schimpe@intel.com> (Christina Schimpe's message of "Wed, 8 Jul 2026 14:36:37 +0000") References: <20260708143639.2214689-1-christina.schimpe@intel.com> <20260708143639.2214689-12-christina.schimpe@intel.com> User-Agent: mu4e 1.14.3; emacs 30.2 Date: Thu, 03 Sep 2026 07:51:17 +0000 Message-ID: <87pkyurcwa.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 Christina Schimpe writes: > Similar to the normal backtrace display > in the shadow stack backtrace for inferior function calls. > > Example for a nested inferior call: > ~~~ > (gdb) bt -shadow > \#0 > \#1 > \#2 0x000000000040045a in call1 at /tmp/amd64-shadow-stack.c:27 > \#3 0x0000000000400466 in main at /tmp/amd64-shadow-stack.c:38 > (gdb) bt > \#0 call2 () at /tmp/amd64-shadow-stack.c:21 > \#1 > \#2 call2 () at /tmp/amd64-shadow-stack.c:21 > \#3 > \#4 call2 () at /tmp/amd64-shadow-stack.c:21 > \#5 0x000000000040045a in call1 () at /tmp/amd64-shadow-stack.c:27 > \#6 0x0000000000400466 in main () at /tmp/amd64-shadow-stack.c:38 > ~~~ > --- > gdb/shadow-stack.c | 36 +++++++++++++++++++ > gdb/shadow-stack.h | 4 +++ > .../gdb.arch/amd64-shadow-stack-cmds.exp | 24 +++++++++++++ > 3 files changed, 64 insertions(+) Nice! Reviewed-by: Thiago Jung Bauermann -- Thiago (he/him)