From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id f+uaFfYrc2neDhEAWB0awg (envelope-from ) for ; Fri, 23 Jan 2026 03:06:14 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=hy3jnEix; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 464051E08D; Fri, 23 Jan 2026 03:06:14 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,HTML_MESSAGE,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 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 69E7C1E08D for ; Fri, 23 Jan 2026 03:06:12 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id E62AE4BCA40D for ; Fri, 23 Jan 2026 08:06:11 +0000 (GMT) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by sourceware.org (Postfix) with ESMTPS id 7C0DB4BC89BD for ; Fri, 23 Jan 2026 08:06:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7C0DB4BC89BD Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7C0DB4BC89BD Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769155560; cv=none; b=vWx5f6LZXFHFTfi605CixvMmuRTwJu9/gsfvzcx+SnLP5I4CKwpQcacVaRm/hiTxWtWK3bFZ1ureZBgN+Xk5vf7nT7IfRQZ8FKZnP7UbzMrccWkC0hHhqRRmUOCUwXxEY4dwdDfYWIr0vC714VKw8FHtWZpQBPi0vqpx22FAF9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769155560; c=relaxed/simple; bh=0yJ/wTV588c5hAFoPYoa0WuBmp59xZKI5BlfhIG1PmY=; h=DKIM-Signature:MIME-Version:From:To:Subject:Date:Message-Id: MIME-Version; b=i7W6WpLJzTQq07T/o0jPu2mwGHa7YJ1sKBD3H6CDCe0hoGC6gNftSxDcOniG2C1obJ9h3Kv6Zc0q8FlkNk9VSernu8Zmexk4f8hHHCfsm0mp+HjyFNlQ7xYHx6m5kwu3gBj4NQVZeLl/muNcKSKm3oLOLh0GbsbU0UcyetObiL4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1769155560; x=1800691560; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=0yJ/wTV588c5hAFoPYoa0WuBmp59xZKI5BlfhIG1PmY=; b=hy3jnEixrGLq5GET9SSUDWKZSa6DrPFjzl2K2V3ygvQBQL/i/1Dp452c s2gSMTqQOf/vscf7pVuA2Ugietc4RUsg47anaKH77PVMLskTCuIIGtxuo uHLzlyODkigJwRTsJLEXymxUOKWtQlT3eIZFVgbMCupGcKDLNOXYpLVGU sYSIVLEMH8UMwYknUpMq+hDWRwZ3r6LMm6pc2hzbnmG/5Wj52IUsLFuac TLFlAJsWCknECaIsdX9sAd0akyMFAU2817kXf/mZ1nh4yS6J8kojMJ95h 81uygn+85UHOFEUFkQTUqBPsJhAmeqECBIUCXA4w24/xl+jB7Oy+u0VJF A==; X-CSE-ConnectionGUID: J6+tXcowRaKrZ/Pty2uXew== X-CSE-MsgGUID: K+eBrfJjRJ+WlI1kookwsQ== X-IronPort-AV: E=McAfee;i="6800,10657,11679"; a="69603048" X-IronPort-AV: E=Sophos;i="6.21,248,1763452800"; d="scan'208";a="69603048" Content-Type: multipart/mixed; boundary="===============4769966574489850485==" MIME-Version: 1.0 Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2026 00:05:59 -0800 X-CSE-ConnectionGUID: o5kmd4dZTg2gGqd96EKTJQ== X-CSE-MsgGUID: KlcOrprmTIeb72VhrkY8TQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,248,1763452800"; d="scan'208";a="206785314" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jan 2026 00:05:57 -0800 From: Christina Schimpe To: gdb-patches@sourceware.org Cc: thiago.bauermann@linaro.org Subject: [PATCH v2 3/9] gdb: Introduce 'stack.c:print_pc' function without frame argument. Date: Fri, 23 Jan 2026 08:05:25 +0000 Message-Id: <20260123080532.878738-4-christina.schimpe@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260123080532.878738-1-christina.schimpe@intel.com> References: <20260123080532.878738-1-christina.schimpe@intel.com> MIME-Version: 1.0 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 --===============4769966574489850485== Content-Transfer-Encoding: 8bit The function will be used in a later patch "gdb: Implement 'bt shadow' to print the shadow stack backtrace.". Approved-By: Tom Tromey --- gdb/stack.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/gdb/stack.c b/gdb/stack.c index 54935992ebf..ffca1cb0865 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -983,15 +983,14 @@ print_frame_info_to_print_what (const char *print_frame_info) print_frame_info); } -/* Print the PC from FRAME, plus any flags, to UIOUT. */ +/* Print the PC, plus any FLAGS (if non-empty), to UIOUT. */ static void -print_pc (struct ui_out *uiout, struct gdbarch *gdbarch, const frame_info_ptr &frame, +print_pc (ui_out *uiout, gdbarch *gdbarch, const std::string &flags, CORE_ADDR pc) { uiout->field_core_addr ("addr", gdbarch, pc); - std::string flags = gdbarch_get_pc_address_flags (gdbarch, frame, pc); if (!flags.empty ()) { uiout->text (" ["); @@ -1000,6 +999,16 @@ print_pc (struct ui_out *uiout, struct gdbarch *gdbarch, const frame_info_ptr &f } } +/* Print the PC from FRAME, plus any flags, to UIOUT. */ + +static void +print_pc (ui_out *uiout, gdbarch *gdbarch, const frame_info_ptr &frame, + CORE_ADDR pc) +{ + std::string flags = gdbarch_get_pc_address_flags (gdbarch, frame, pc); + print_pc (uiout, gdbarch, flags, pc); +} + /* See stack.h. */ void -- 2.34.1 --===============4769966574489850485== Content-Type: multipart/alternative; boundary="===============7437179270985914637==" MIME-Version: 1.0 Content-Disposition: inline --===============7437179270985914637== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Intel Deutschland GmbH Registered Address: Dornacher Stra=C3=9Fe 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============7437179270985914637== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
Intel Deutschland GmbH
Registered Address: Dornacher Stra=C3= =9Fe 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.deManaging Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell<= div>Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: M= unich
Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============7437179270985914637==-- --===============4769966574489850485==--