From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 178jDmHc8WqFNDoAWB0awg (envelope-from ) for ; Mon, 09 Nov 2026 09:44:49 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=RMC/bVqv; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 203D31E023; Mon, 09 Nov 2026 09:44:49 -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.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,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 CF8FF1E023 for ; Mon, 09 Nov 2026 09:44:47 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E981E4BA23E0 for ; Mon, 9 Nov 2026 14:44:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E981E4BA23E0 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=RMC/bVqv Received: from mail-oa1-x30.google.com (mail-oa1-x30.google.com [IPv6:2001:4860:4864:20::30]) by sourceware.org (Postfix) with ESMTPS id EC6484BA23D8 for ; Mon, 9 Nov 2026 14:42:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC6484BA23D8 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EC6484BA23D8 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::30 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794235354; cv=none; b=ZFEe6TTq2viI2lBJNB/K8CyYNd4wxQ22vpOGNt1XQNaEsjdrDdtWvAQZsyBG9QDKQxuv8iM5tkEsFjeix1eRtpPy1+7r7wtgAiVtDadUyPiEnvhar2IfkSQ0ynJQQaWhR0/HBbmnUKOlHTvldQ2T1Vh/WVGD45A+4qO+wsKOFIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794235354; c=relaxed/simple; bh=5flevQ630lOzAWIDSDDh1XgS2cnv+VTfT4wfnk8tuBk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=xOI7g373iHnrRVIWVrmCIVW5OsFc6oAo6mpzGYQU6wNFpDG0BwC43It9nWgpVQ+mwJhR0IYlxCEJPmkZu+rYuKfb80wo2FYuOP6SwyJtUR8uyX/QEEhJtdbwsHBfBgZJ55+Kw/QPjj6d+IxYSyTNL7AGtRYptORLg4rwP4gGCds= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=RMC/bVqv DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC6484BA23D8 Received: by mail-oa1-x30.google.com with SMTP id 586e51a60fabf-4adea5b7a2fso434106fac.2 for ; Mon, 09 Nov 2026 06:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1794235353; x=1794840153; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=bjOBZIYlnMA/IDmENL9rDhI8v6McpwSuf41kOIFouec=; b=RMC/bVqvnp9JDY31jlc9LjUz93Ma2cCFiDPw+kD0NzzPyTPEt73cm6uqE4wBc+7M0U k8OJ7gOLlHnAQmYE+aULH6MYO7HhROLCykbTw/xGgjiekqZvTIeEQnbiT74hTVeQQwlj AEORtDbMr+R9YZ2kCC/4gxGRFXVln+SRi3Vi4DnycdiaWYoxnoATjDOGtJ9J1OaoMf7G d+eYF6zQVmBeObOW4QWdhS1M8A1DjK2YHxmftzXcS/8zID5ouM+ULSk8AbQmQbe6320I Q1pxk2MF83MzoRUK5oOy2176J3kxlJPMOIcZ86coGFkbe8P4bgrH3XaVTIVGNR5qXO88 8N9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794235353; x=1794840153; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=bjOBZIYlnMA/IDmENL9rDhI8v6McpwSuf41kOIFouec=; b=SSdPH7wkrpgbqn5UpSAv7OR7lxVt1wSc7k+x8aJ1d9wkeszEsWi1hzIXwZ3g4scF0o pck8s2jd5cRFsmoOLZAl2kkB1dYXQhVJsjRO4ZJrheNU8TPw+wFhui6atKuXYTiTiHiZ 1nl2DZVzgp2B1dGbJC8584Aa5e2LmmASxVBj7aHftIXayzBPsiFVOFyChuJ11qzi5gTS 7klFkvo1W/30C8uZxnTGm9U+hIq2jt69btcsx0BMGYwrkos5ilVmZELDZ80WLGnHvkf/ mdO9Au1NYOKsuNb1wvFrnolzRCino+DgA/bw3Ar0REwCJ3loIrTTr+yaManhONUvVCMI 3FmA== X-Gm-Message-State: APuU4Z/n+s+kR59Ad/lFDKElgcDPe8YM4SGVSpApmmFB11lUAukSyAS4 0ZGb5zc4ZmR7IRAuz9/eWP+o9xmGpfPzVLzSOl7BnHBFMdfz8zrAFqVWz0+U3ALy59t6IpqT1M7 UBx5yUg== X-Gm-Gg: AYBFou0Pd9KWkFHjoDaWkQz0PcN02ITzswsApge2k1J2XCQHPsBNT9rJE6jQGZaslFC +E5v0UAhVsvsAZK9aXUeuHSrDOHNbYiZ1aAL1jw+CFp/tmz0j4E0VftJRZyOP8IQkz44/q6Y3jt gooumB6pKauG+4m23RAcvCSoeVrwOjIsgW2qX4VSTST8/3vU31Rqmh25RlVamNIy/uzT1Xfakk7 yB+Ep00O0DbVPg2YqALwg6usLxPBcwA04X8HiDiu028tWnCM9DfEhccdsRxuHE0RRnq53D6nKDs cdzp3+EpSMoqDA2oSqaotyJLDkdBUZk5PwB+qccFk/vXocQHB7gX83QO/oU4a52alu0K0xKZBdo U8v2vfWIDTGnus/c3JJkG+YfxiqFlPG4TH3OZnQH+4F/e/qRjQ2L6FYwgLNB/AaFCGjueoQ82no mrS+m2jAi17EKYRPS9jtuTb8Kftom4+byr7iYF5O5mEzgS9ao04WLmiZIxdVP88BfIxV1TLRfMi vB3MWkULpyWNnXYmigYEfvmTaJbj1ZOeUsSLdDagqIlC4Fq0Esce2/gfgie7pSn4L36393j/ZO6 Ixpqz5Il/7zW3F9Hr25PwyzuT2zi/CrOcsKm33xlUTU/Q1mFm2hEnPXIcjYP9v6Pa12t+v5PpA= = X-Received: by 2002:a05:6808:bc2:b0:4f6:5279:5c75 with SMTP id 5614622812f47-5681449a626mr3044809b6e.28.1794234907316; Mon, 09 Nov 2026 06:35:07 -0800 (PST) Received: from bapiya (97-122-110-129.hlrn.qwest.net. [97.122.110.129]) by smtp.gmail.com with ESMTPSA id 5614622812f47-568138f81b7sm4617004b6e.0.2026.11.09.06.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2026 06:35:06 -0800 (PST) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Two changes to the style documentation Date: Mon, 9 Nov 2026 07:35:04 -0700 Message-ID: <20261109143504.367171-1-tromey@adacore.com> X-Mailer: git-send-email 2.56.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 I noticed that the "set style" commands aren't in any discernible order. This patch reorganizes the table to sort them alphabetically. Also, I've added a link to the NO_COLOR website. --- gdb/doc/gdb.texinfo | 161 ++++++++++++++++++++++---------------------- 1 file changed, 82 insertions(+), 79 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index bfc5b8760b9..7998dfb58c8 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -28426,6 +28426,8 @@ most hosts defaulting to @samp{on}. If the @env{NO_COLOR} environment variable is set to a non-empty value, then @value{GDBN} will change this to @samp{off} at startup. +See @url{https://no-color.org/} for more information on +@env{NO_COLOR}. @item show style enabled Show the current state of styling. @@ -28565,11 +28567,63 @@ So, use @command{show style} to see the complete list of styles, their characteristics and the visual aspect of each style. The style-able objects are: + @table @code +@item address +Control the styling of addresses. These are managed with the +@code{set style address} family of commands. By default, this style's +foreground color is blue. + +This style is also used for addresses in styled disassembler output +if @value{GDBN} is using its builtin disassembler library for styling +(@pxref{style_disassembler_enabled,,@kbd{set style disassembler +enabled}}). + @item command Control the styling of any @value{GDBN} commands that are displayed by @value{GDBN}. By default, this style's intensity is bold. +@item disassembler address +Control the styling of address operands in the disassembler output. +This is an alias for the @samp{address} style. + +@item disassembler comment +Control the styling of comments in the disassembler output. These are +managed with the @code{set style disassembler comment} family of +commands. This style is only used when @value{GDBN} is styling using +its builtin disassembler library +(@pxref{style_disassembler_enabled,,@kbd{set style disassembler +enabled}}). By default, this style's intensity is dim, and its +foreground color is white. + +@item disassembler immediate +Control the styling of numeric operands in the disassembler output. +These are managed with the @code{set style disassembler immediate} +family of commands. This style is not used for instruction operands +that represent addresses, in that case the @samp{disassembler address} +style is used. This style is only used when @value{GDBN} is styling +using its builtin disassembler library. By default, this style's +foreground color is blue. + +@item disassembler mnemonic +Control the styling of instruction mnemonics in the disassembler +output. These are managed with the @code{set style disassembler +mnemonic} family of commands. This style is also used for assembler +directives, e.g.@: @code{.byte}, @code{.word}, etc. This style is +only used when @value{GDBN} is styling using its builtin disassembler +library. By default, this style's foreground color is green. + +@item disassembler register +Control the styling of register operands in the disassembler output. +These are managed with the @code{set style disassembler register} +family of commands. This style is only used when @value{GDBN} is +styling using its builtin disassembler library. By default, this style's +foreground color is red. + +@item disassembler symbol +Control the styling of symbol names in the disassembler output. This +is an alias for the @samp{function} style. + @item filename Control the styling of file names and URLs. By default, this style's foreground color is green. @@ -28584,43 +28638,6 @@ if @value{GDBN} is using its builtin disassembler library for styling (@pxref{style_disassembler_enabled,,@kbd{set style disassembler enabled}}). -@item line-number -Control the styling of line numbers. By default, this style's -intensity is dim. - -@item variable -Control the styling of variable names. These are managed with the -@code{set style variable} family of commands. By default, this style's -foreground color is cyan. - -@item address -Control the styling of addresses. These are managed with the -@code{set style address} family of commands. By default, this style's -foreground color is blue. - -This style is also used for addresses in styled disassembler output -if @value{GDBN} is using its builtin disassembler library for styling -(@pxref{style_disassembler_enabled,,@kbd{set style disassembler -enabled}}). - -@item version -Control the styling of @value{GDBN}'s version number text. By -default, this style's foreground color is magenta and it has bold -intensity. The version number is displayed in two places, the output -of @command{show version}, and when @value{GDBN} starts up. - -In order to control how @value{GDBN} styles the version number at -startup, add the @code{set style version} family of commands to the -early initialization command file (@pxref{Initialization -Files}). - -@item title -Control the styling of titles. These are managed with the -@code{set style title} family of commands. By default, this style's -intensity is bold. The title style is used when displaying the header -line of a list, for example the first line of the output of -@code{info breakpoints} (@pxref{Set Breaks}). - @item highlight Control the styling of highlightings. These are managed with the @code{set style highlight} family of commands. By default, this style's @@ -28629,6 +28646,10 @@ the user attention to some specific parts of their output. For example, the command @command{apropos -v REGEXP} uses the highlight style to mark the documentation parts matching @var{regexp}. +@item line-number +Control the styling of line numbers. By default, this style's +intensity is dim. + @item metadata Control the styling of data annotations added by @value{GDBN} to data it displays. By default, this style's intensity is dim. Metadata @@ -28639,6 +28660,17 @@ for errors and @samp{} annotations for optimized-out values in displaying stack frame information in backtraces (@pxref{Backtrace}), etc. +@item title +Control the styling of titles. These are managed with the +@code{set style title} family of commands. By default, this style's +intensity is bold. The title style is used when displaying the header +line of a list, for example the first line of the output of +@code{info breakpoints} (@pxref{Set Breaks}). + +@item tui-active-border +Control the styling of the active TUI border; that is, the TUI window +that has the focus. + @item tui-border Control the styling of the TUI border. Note that, unlike other styling options, only the color of the border can be controlled via @@ -28646,50 +28678,21 @@ styling options, only the color of the border can be controlled via controls to set the border's intensity predated the addition of general styling to @value{GDBN}. @xref{TUI Configuration}. -@item tui-active-border -Control the styling of the active TUI border; that is, the TUI window -that has the focus. - -@item disassembler comment -Control the styling of comments in the disassembler output. These are -managed with the @code{set style disassembler comment} family of -commands. This style is only used when @value{GDBN} is styling using -its builtin disassembler library -(@pxref{style_disassembler_enabled,,@kbd{set style disassembler -enabled}}). By default, this style's intensity is dim, and its -foreground color is white. - -@item disassembler immediate -Control the styling of numeric operands in the disassembler output. -These are managed with the @code{set style disassembler immediate} -family of commands. This style is not used for instruction operands -that represent addresses, in that case the @samp{disassembler address} -style is used. This style is only used when @value{GDBN} is styling -using its builtin disassembler library. By default, this style's -foreground color is blue. - -@item disassembler address -Control the styling of address operands in the disassembler output. -This is an alias for the @samp{address} style. - -@item disassembler symbol -Control the styling of symbol names in the disassembler output. This -is an alias for the @samp{function} style. +@item variable +Control the styling of variable names. These are managed with the +@code{set style variable} family of commands. By default, this style's +foreground color is cyan. -@item disassembler mnemonic -Control the styling of instruction mnemonics in the disassembler -output. These are managed with the @code{set style disassembler -mnemonic} family of commands. This style is also used for assembler -directives, e.g.@: @code{.byte}, @code{.word}, etc. This style is -only used when @value{GDBN} is styling using its builtin disassembler -library. By default, this style's foreground color is green. +@item version +Control the styling of @value{GDBN}'s version number text. By +default, this style's foreground color is magenta and it has bold +intensity. The version number is displayed in two places, the output +of @command{show version}, and when @value{GDBN} starts up. -@item disassembler register -Control the styling of register operands in the disassembler output. -These are managed with the @code{set style disassembler register} -family of commands. This style is only used when @value{GDBN} is -styling using its builtin disassembler library. By default, this style's -foreground color is red. +In order to control how @value{GDBN} styles the version number at +startup, add the @code{set style version} family of commands to the +early initialization command file (@pxref{Initialization +Files}). @end table base-commit: 45460a213097f19fb10bc5798f127d460f94b00a -- 2.56.0