From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by sourceware.org (Postfix) with ESMTPS id F22053858D28 for ; Thu, 7 Apr 2022 18:44:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F22053858D28 Received: by mail-io1-xd33.google.com with SMTP id 125so7875810iov.10 for ; Thu, 07 Apr 2022 11:44:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ydwDZDiDwxms/Ds3/aEBRXC+2KctCi9TXdfBN28a8bw=; b=NyRS/uVwxaVtdb1DiPQfU1LWbQHqTOY5qcksIAiNNF+3F2YO2BZll//ocEnJHkPeKt 2TtLeZLlg9Qx8UpeCYN3ShoYPLYK5Ayp6TSMwpZDWibyT8SW7Qsq/ppX0PkZWkiLgCPA 3Vat0Ptz5FzgyNkuzbUVWwrDcpuZ/h1POSuDfnt6nZdzaH/ZJurvDbu8XjNXGEve6p/V PuVmNXCoA7mmjomymBS7AIwSWYfC+VYkLyWN3Ns9mXuHl6GQQtMxRksTlVb/69dHXP+V Tk2tIpZ++erBXodTGspDNFLDFrwSvnt/eFszyCIfJ2UTKJYyIhXKuCwznNohrWfvjsur oTmg== X-Gm-Message-State: AOAM532wEg9oCFyXeUDXCMWl10Rm/9z3tbFYJXFmRvtMkuUPF/2pJo4k 9GvJRoliW7wUxYsQ6mVEoIbxjw== X-Google-Smtp-Source: ABdhPJwBD5Qn8s491nicP0DNlBwavwjdIiB66Fu8QlxjH/t+Er7LesHx2kJirxcjqq2GxMQHeKc2GQ== X-Received: by 2002:a6b:1547:0:b0:64c:8bd4:acba with SMTP id 68-20020a6b1547000000b0064c8bd4acbamr6846047iov.204.1649357084304; Thu, 07 Apr 2022 11:44:44 -0700 (PDT) Received: from murgatroyd (71-211-154-204.hlrn.qwest.net. [71.211.154.204]) by smtp.gmail.com with ESMTPSA id a2-20020a5d9ec2000000b00645ab33390dsm13312171ioe.9.2022.04.07.11.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 11:44:43 -0700 (PDT) From: Tom Tromey To: Eli Zaretskii Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: Metadata style? References: <83tubh9aqc.fsf@gnu.org> X-Attribution: Tom Date: Thu, 07 Apr 2022 12:44:42 -0600 In-Reply-To: <83tubh9aqc.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 28 Mar 2022 21:46:03 +0300") Message-ID: <87sfqo91id.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 07 Apr 2022 18:44:46 -0000 >>>>> "Eli" == Eli Zaretskii writes: Eli> The command "show style" includes this part: Eli> style metadata background: The "metadata" style background color is: none Eli> style metadata foreground: The "metadata" style foreground color is: none Eli> style metadata intensity: The "metadata" style display intensity is: dim Eli> But there's no explanation in the manual what is the "metadata" Eli> object. What is it, and how can I display it in GDB to see the style Eli> in action? First, sorry about this, I completely slipped on writing documentation for this. There's a test for this style: gdb_test_no_output "set print repeat 3" gdb_test "print {0,0,0,0,0,0,0,0}" \ " = \\{0 [limited_style {} metadata]\\}" It's used in a number of places where gdb is attempting to display some kind of data from the inferior but instead prints some internally-generated text, e.g.: fprintf_styled (stream, metadata_style.style (), _("")); I'm not completely sure of the best way to describe this. Tom