From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tmPDOArM/GIRfigAWB0awg (envelope-from ) for ; Wed, 17 Aug 2022 07:07:54 -0400 Received: by simark.ca (Postfix, from userid 112) id DCB211E5EA; Wed, 17 Aug 2022 07:07:54 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=ZS4TkbeI; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 836A81E13B for ; Wed, 17 Aug 2022 07:07:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C76383858418 for ; Wed, 17 Aug 2022 11:07:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C76383858418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1660734472; bh=6Sr4QvhV7lLvh8X3opMc8ZqTaoAAmNcY45qX01evIXA=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ZS4TkbeImErPqXfjCeY+/7DqlexaEGeb3/H5KdCHJosayuLpIAITp00Z/Zbge7f94 vQ0S8OhJ/kg/liPCQbGUwXsybEdlBN0uw+Bn8dphvScLy9vwv+XcQFMM61NLNm00WL pUhW812ba+mEypZbrr7uDKT6bUzhucUSP4zLk+xk= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 242F63858D37 for ; Wed, 17 Aug 2022 11:07:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 242F63858D37 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOGtV-0006EU-4z; Wed, 17 Aug 2022 07:07:30 -0400 Received: from [87.69.77.57] (port=2316 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOGtT-0008WJ-5w; Wed, 17 Aug 2022 07:07:28 -0400 Date: Wed, 17 Aug 2022 14:07:17 +0300 Message-Id: <83ilmrdt7e.fsf@gnu.org> To: Andrew Burgess In-Reply-To: <20220816171822.3315660-1-aburgess@redhat.com> (message from Andrew Burgess via Gdb-patches on Tue, 16 Aug 2022 18:18:22 +0100) Subject: Re: [PATCH] gdb: new 'maint print frame-id' command References: <20220816171822.3315660-1-aburgess@redhat.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > Date: Tue, 16 Aug 2022 18:18:22 +0100 > From: Andrew Burgess via Gdb-patches > Cc: Andrew Burgess > > When debugging a certain class of GDB bug, I often end up wanting to > know what GDB thinks the frame-id is in a particular frame. It's > not too hard to pull this from some debug output, but I thought it > might be nice if there was a maintenance command that could tell us. > > This commit adds 'maint print frame-id' which prints the frame-id of > the currently selected frame. You can also pass a frame level number > to find the frame-id for a specific frame. > > There's a new test too. > --- > gdb/NEWS | 4 ++ > gdb/doc/gdb.texinfo | 17 +++++ > gdb/frame.c | 28 ++++++++ > gdb/testsuite/gdb.base/maint-print-frame-id.c | 40 +++++++++++ > .../gdb.base/maint-print-frame-id.exp | 68 +++++++++++++++++++ > 5 files changed, 157 insertions(+) > create mode 100644 gdb/testsuite/gdb.base/maint-print-frame-id.c > create mode 100644 gdb/testsuite/gdb.base/maint-print-frame-id.exp Thanks, the documentation parts are OK.