From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id t+DtHxBXbmR4/hIAWB0awg (envelope-from ) for ; Wed, 24 May 2023 14:27:28 -0400 Received: by simark.ca (Postfix, from userid 112) id 74B731E11E; Wed, 24 May 2023 14:27:28 -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=HunvrYtD; 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=-5.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, 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 2A13E1E0D4 for ; Wed, 24 May 2023 14:27:28 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BEEA23857714 for ; Wed, 24 May 2023 18:27:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEEA23857714 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684952847; bh=MkVPD3KRmDAdnvl3N0JAeTYYuMDDPhSlYBdv/YbG0XI=; h=Date:To:Cc:In-Reply-To:Subject:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=HunvrYtD+29oRpCkWa+Q+ON4gPZY8uc4qDPa04CI2RzlxZ2jSn5ZByb14FV4uBFrj 5KFs2VTL5tv26eqNgpF+FdH9z9ZPnJ9GQcKp29ZkSB1RrYlxSH+c0Dgj8sph3sXbuf W7KOA+J+qNPCCIYh7w34daPCDU7i71P8Se9HRQqQ= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id EB0783858D28 for ; Wed, 24 May 2023 18:26:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB0783858D28 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 1q1tCN-00055D-BF; Wed, 24 May 2023 14:26:59 -0400 Received: from [87.69.77.57] (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 1q1tCM-0008I9-RD; Wed, 24 May 2023 14:26:59 -0400 Date: Wed, 24 May 2023 21:27:26 +0300 Message-Id: <83v8ghmvox.fsf@gnu.org> To: Mary Ma Cc: gdb@sourceware.org In-Reply-To: (message from Mary Ma via Gdb on Wed, 24 May 2023 18:07:06 +0000) Subject: Re: How to implement an abbreviated view of a class type References: X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb Reply-To: Eli Zaretskii Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" > Date: Wed, 24 May 2023 18:07:06 +0000 > From: Mary Ma via Gdb > > However, the challenge I'm facing is that the command line interface displays all the information of a class type at once including inheritance, properties, subclasses. This makes the output overwhelming for developers, especially when encountering cyclic structures. > > For instance, it's possible that Type A points to Type B and vice versa, creating a cyclic relationship that makes the view look messy. > > I am wondering if there are ways to present an abbreviated view of a type and allow developers to have further control over the amount of detail in the output, depending on what developers want to see. Did you try using the 'explore' command? There are also several settings for the 'print' command, all of them starting with "set print type".