From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gV7DKx4tzWq/NjwAWB0awg (envelope-from ) for ; Mon, 12 Oct 2026 14:55:26 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KwQ9JxFD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id AEAD61E051; Mon, 12 Oct 2026 14:55:26 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,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 788411E04E for ; Mon, 12 Oct 2026 14:55:23 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EA6734BA23FE for ; Mon, 12 Oct 2026 18:55:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA6734BA23FE Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KwQ9JxFD Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id D2D8D4BA23F8 for ; Mon, 12 Oct 2026 18:54:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D2D8D4BA23F8 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D2D8D4BA23F8 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791831289; cv=none; b=PhlcsV9LRWFZ59WghoHCI5+Pqh41Wn10e4n2+3WmgWYmJus38Bg4WQim0Sa9Usr2+YYdpTcOyAnt24AsFc/M4tyN7Ymu3UpQbVihP3RhfSuUFyByCO5y0XWS+goLreddA8ihya8f9Z0oWD90oV4aZc6Ub5M68Mv27poDH5psJdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791831289; c=relaxed/simple; bh=3kB1yu1C0p5ChkirhfQgouwRmwm64oYB8g+IVeSU1yo=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=hcP373DYMhP3/QWp9R7CAKM0h3A0eX0H0eKQh58S7xf6eMrcl3arYS1rIW44aBF8ASA0J/e2dgwEWoUFM4/qwpIDdJDSu20jeAnJbwtm1mZPHNR1kN76Y9skjBPK/XfwKtq/Gg6aHV+PkXd7mw2RWgF0HD7jhs959W6seLPyMx8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=KwQ9JxFD DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2D8D4BA23F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1791831288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HHXtiyrTwHK17Am4hTZxIWqwrxjLksAdsem6BC7/IS0=; b=KwQ9JxFDktlH2ADhdv8a9lsArOJk/SFLePoOrVP9u7RdXGV9J0qAYKPja0LWFujKZUeSMa /btUftMQQ9zMPtCVYg4FoHmyATZB4wGW8gV0iDXmGZOklNtjRsJzJyVLAY4hy/R7ERAMzt smpSLnfbJnGgYpBURFVd5M6fV/D1cLE= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-264-HQuCNb5JNXmEWpub5VN4dw-1; Mon, 12 Oct 2026 18:54:45 +0000 X-MC-Unique: HQuCNb5JNXmEWpub5VN4dw-1 X-Mimecast-MFC-AGG-ID: HQuCNb5JNXmEWpub5VN4dw_1791831284 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4a009f82bedso17878435e9.0 for ; Mon, 12 Oct 2026 11:54:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791831284; x=1792436084; h=content-transfer-encoding:mime-version:references:in-reply-to :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=HHXtiyrTwHK17Am4hTZxIWqwrxjLksAdsem6BC7/IS0=; b=sUQFCQPT+8/0gZf/Rbz44OQJGNJwpqAaG1nzBHiuyxFBFkuWvsnxlQ9IWljPTshI+S +OPhbFFvExc3dGDtK2duWVzYoYpu9t0JjjNu1e1atVG2SfRtPKqH5ToGhYcYvdTsOxKJ ofLbtzKq6e+BUpKi2WZ+lt37lXvmZ+zWvK9C+sS+gcgWluTS57FE5QlqmFVlxr+l8NFB YpCEufqni4JTcHJeGbVujOehq3d3NFr3ci/2em1Qlxe5eMfgdBpis9zIIHpYLEITc/m5 00r3VWZe1nFVPG1sCqZ3nPKT/rA4F0weFwvoAvjyLFsebCgz7Po3FTvYIf4RsScqxMhl bAqA== X-Gm-Message-State: AFq9FYJdFCAqlie5d70mu50YXCEaK3ve4XK44cTn4CIwX9pJjG5aq2ab zhc7KZQdmPm4Qy0WAY5gogxKf3Gc3jhkDLJqOLNSC/VOJLG3BqBZEcwzvQwh5cuQAUpbSSMns48 sR463tLxRulPJfD8ZagEHdi2gwh35HFPs0RLETKShCEgNAag2tG7ww9lCEoSw3luqXzT5Us3Wfg 4OUj4yCfeMSorVtcIOWRmFpFcrmxhkPVmvnjtd6k8ESOIiiAI= X-Gm-Gg: AYBFou2+rCybbgKrJp5dTVXMq8vXLPuZsTAyFOn+T4Pifqg/ZbrdmGMLiZ+48K697rH TDQwdvj/NW/7vhUprU3mAv+GN2MRMDAamw3TVzmfd4AvMM1gL/eP+3ROK5hQjTq0RtS/Uz+otMa h0WjcSt/1bEt+F8stL8y01VDQoRkz+0lu9EVGGVJMOUrwHg1UCTZ3e70k/yDN6r03/xas7dbBDz BvwrIObfWzdtVrAyf6QVoimMziNvObap+Kwj/PbpI0kQCJUkSc4hDDH7Zvc35VRGDiLBJxAdhFm CWSSsG/J8XGO1/SEy7/yDE4pPdQLAt7xLbrgMq5GTUxZujm0tVnINif48UHEwfj4V6k4 X-Received: by 2002:a05:600c:4ecb:b0:49f:f099:6fb1 with SMTP id 5b1f17b1804b1-4a18e4adcd0mr204140355e9.15.1791831283640; Mon, 12 Oct 2026 11:54:43 -0700 (PDT) X-Received: by 2002:a05:600c:4ecb:b0:49f:f099:6fb1 with SMTP id 5b1f17b1804b1-4a18e4adcd0mr204139935e9.15.1791831283003; Mon, 12 Oct 2026 11:54:43 -0700 (PDT) Received: from localhost ([213.31.44.29]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a18be964dfsm303848605e9.7.2026.10.12.11.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Oct 2026 11:54:42 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 3/5] gdb/doc: consistent formatting for on|off on @item lines Date: Mon, 12 Oct 2026 19:54:28 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: FIn0mk906WE-1_sFduZIUtvnhoZcW77cKKAtBGbqErM_1791831284 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 When a command takes 'on' or 'off' as an option then we have a bunch of styles for how this is presented within a table's @item line: @item set logging enabled [on|off] @item -past-main [@code{on}|@code{off}] @item set auto-load python-scripts @r{[}on@r{|}off@r{]} Of these the last seems to be the style that is most often used for new additions. I think it's the correct one because: 1. Use @r{...} to wrap the characters that are not part of the command: [|], this ensures these characters are formatted as normal text, not using the table style, which should be @kbd. 2. Wrapping 'on' and 'off' in @code{...} is clearly wrong, there are not code. Using @samp{...} might work, but this isn't what we currently do, and the 'on' and 'off' could be considered just another part of the command, so using the table's default @kbd style seems reasonable enough. This commit updates some cases in the documentation which used the first two styles to use the third style, this makes things more consistent. --- gdb/doc/gdb.texinfo | 78 ++++++++++++++++++++++----------------------- gdb/doc/guile.texi | 4 +-- gdb/doc/python.texi | 4 +-- 3 files changed, 43 insertions(+), 43 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index fd298da584c..1468855c37f 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1789,18 +1789,18 @@ Logging Output @table @kbd @kindex set logging enabled -@item set logging enabled [on|off] +@item set logging enabled @r{[}on@r{|}off@r{]} Enable or disable logging. @cindex logging file name @item set logging file @var{file} Change the name of the current logfile. The default logfile is @file{gdb.txt}. -@item set logging overwrite [on|off] +@item set logging overwrite @r{[}on@r{|}off@r{]} By default, @value{GDBN} will append to the logfile. Set @code{overwrite} if you want @code{set logging enabled on} to overwrite the logfile instead. -@item set logging redirect [on|off] +@item set logging redirect @r{[}on@r{|}off@r{]} By default, @value{GDBN} output will go to both the terminal and the logfile. Set @code{redirect} if you want output to go only to the log file. -@item set logging debugredirect [on|off] +@item set logging debugredirect @r{[}on@r{|}off@r{]} By default, @value{GDBN} debug output will go to both the terminal and the logfile. Set @code{debugredirect} if you want debug output to go only to the log file. @kindex show logging @@ -8788,11 +8788,11 @@ Backtrace backtrace} and @code{set print} subcommands: @table @code -@item -past-main [@code{on}|@code{off}] +@item -past-main @r{[}on@r{|}off@r{]} Set whether backtraces should continue past @code{main}. Related setting: @ref{set backtrace past-main}. -@item -past-entry [@code{on}|@code{off}] +@item -past-entry @r{[}on@r{|}off@r{]} Set whether backtraces should continue past the entry point of a program. Related setting: @ref{set backtrace past-entry}. @@ -8804,7 +8804,7 @@ Backtrace Set printing of non-scalar frame arguments. Related setting: @ref{set print frame-arguments}. -@item -raw-frame-arguments [@code{on}|@code{off}] +@item -raw-frame-arguments @r{[}on@r{|}off@r{]} Set whether to print frame arguments in raw form. Related setting: @ref{set print raw-frame-arguments}. @@ -9318,11 +9318,11 @@ Frame Apply allow overriding relevant @code{set backtrace} settings: @table @code -@item -past-main [@code{on}|@code{off}] +@item -past-main @r{[}on@r{|}off@r{]} Whether backtraces should continue past @code{main}. Related setting: @ref{set backtrace past-main}. -@item -past-entry [@code{on}|@code{off}] +@item -past-entry @r{[}on@r{|}off@r{]} Whether backtraces should continue past the entry point of a program. Related setting: @ref{set backtrace past-entry}. @end table @@ -10835,15 +10835,15 @@ Data subcommands: @table @code -@item -address [@code{on}|@code{off}] +@item -address @r{[}on@r{|}off@r{]} Set printing of addresses. Related setting: @ref{set print address}. -@item -array [@code{on}|@code{off}] +@item -array @r{[}on@r{|}off@r{]} Pretty formatting of arrays. Related setting: @ref{set print array}. -@item -array-indexes [@code{on}|@code{off}] +@item -array-indexes @r{[}on@r{|}off@r{]} Set printing of array indexes. Related setting: @ref{set print array-indexes}. @@ -10864,27 +10864,27 @@ Data Set the threshold after which nested structures are replaced with ellipsis. Related setting: @ref{set print max-depth}. -@item -nibbles [@code{on}|@code{off}] +@item -nibbles @r{[}on@r{|}off@r{]} Set whether to print binary values in groups of four bits, known as ``nibbles''. @xref{set print nibbles}. -@item -memory-tag-violations [@code{on}|@code{off}] +@item -memory-tag-violations @r{[}on@r{|}off@r{]} Set printing of additional information about memory tag violations. @xref{set print memory-tag-violations}. -@item -null-stop [@code{on}|@code{off}] +@item -null-stop @r{[}on@r{|}off@r{]} Set printing of char arrays to stop at first null char. Related setting: @ref{set print null-stop}. -@item -object [@code{on}|@code{off}] +@item -object @r{[}on@r{|}off@r{]} Set printing C@t{++} virtual function tables. Related setting: @ref{set print object}. -@item -pretty [@code{on}|@code{off}] +@item -pretty @r{[}on@r{|}off@r{]} Set pretty formatting of structures. Related setting: @ref{set print pretty}. -@item -raw-values [@code{on}|@code{off}] +@item -raw-values @r{[}on@r{|}off@r{]} Set whether to print values in raw form, bypassing any pretty-printers for that value. Related setting: @ref{set print raw-values}. @@ -10894,19 +10894,19 @@ Data all elements to be individually printed. Related setting: @ref{set print repeats}. -@item -static-members [@code{on}|@code{off}] +@item -static-members @r{[}on@r{|}off@r{]} Set printing C@t{++} static members. Related setting: @ref{set print static-members}. -@item -symbol [@code{on}|@code{off}] +@item -symbol @r{[}on@r{|}off@r{]} Set printing of symbol names when printing pointers. Related setting: @ref{set print symbol}. -@item -union [@code{on}|@code{off}] +@item -union @r{[}on@r{|}off@r{]} Set printing of unions interior to structures. Related setting: @ref{set print union}. -@item -vtbl [@code{on}|@code{off}] +@item -vtbl @r{[}on@r{|}off@r{]} Set printing of C++ virtual function tables. Related setting: @ref{set print vtbl}. @end table @@ -14228,7 +14228,7 @@ Memory Region Attributes @table @kbd @kindex set mem inaccessible-by-default -@item set mem inaccessible-by-default [on|off] +@item set mem inaccessible-by-default @r{[}on@r{|}off@r{]} If @code{on} is specified, make @value{GDBN} treat memory not explicitly described by the memory ranges as non-existent and refuse accesses to such memory. The checks are only performed if there's at least one @@ -17198,7 +17198,7 @@ Automatically setting: @table @kbd -@item set warn-language-frame-mismatch [on|off] +@item set warn-language-frame-mismatch @r{[}on@r{|}off@r{]} @kindex warn-language-frame-mismatch Enable or disable the warning that is issued when the current language is set to a value that does not match the current frame. @@ -18390,7 +18390,7 @@ Special Fortran Commands @cindex arrays slices (Fortran) @kindex set fortran repack-array-slices @kindex show fortran repack-array-slices -@item set fortran repack-array-slices [on|off] +@item set fortran repack-array-slices @r{[}on@r{|}off@r{]} @item show fortran repack-array-slices When taking a slice from an array, a Fortran compiler can choose to either produce an array descriptor that describes the slice in place, @@ -20021,7 +20021,7 @@ Ada Glitches @table @kbd @kindex maint ada set ignore-descriptive-types -@item maintenance ada set ignore-descriptive-types [on|off] +@item maintenance ada set ignore-descriptive-types @r{[}on@r{|}off@r{]} Control whether the debugger should ignore descriptive types. The default is not to ignore descriptives types (@code{off}). @@ -20929,11 +20929,11 @@ Symbols column indicates that a given address marks the point where a block's frame is destroyed, making local variables hard or impossible to find. -@kindex set always-read-ctf [on|off] +@kindex set always-read-ctf @r{[}on@r{|}off@r{]} @kindex show always-read-ctf @cindex always-read-ctf @cindex CTF info, when to read -@item set always-read-ctf [on|off] +@item set always-read-ctf @r{[}on@r{|}off@r{]} @itemx show always-read-ctf When off, CTF debug info is only read if DWARF debug info is not @@ -20977,7 +20977,7 @@ Symbols @kindex maint set ignore-prologue-end-flag @cindex prologue-end -@item maint set ignore-prologue-end-flag [on|off] +@item maint set ignore-prologue-end-flag @r{[}on@r{|}off@r{]} Enable or disable the use of the @samp{PROLOGUE-END} flag from the line-table. When @samp{off} (the default), @value{GDBN} uses the @samp{PROLOGUE-END} flag to place breakpoints past the end of a function prologue. When @samp{on}, @@ -29010,7 +29010,7 @@ Init File in the Current Directory @table @kbd @anchor{set auto-load local-gdbinit} @kindex set auto-load local-gdbinit -@item set auto-load local-gdbinit [on|off] +@item set auto-load local-gdbinit @r{[}on@r{|}off@r{]} Enable or disable the auto-loading of canned sequences of commands (@pxref{Sequences}) found in init file in the current directory. @@ -29049,7 +29049,7 @@ libthread_db.so.1 file @table @kbd @anchor{set auto-load libthread-db} @kindex set auto-load libthread-db -@item set auto-load libthread-db [on|off] +@item set auto-load libthread-db @r{[}on@r{|}off@r{]} Enable or disable the auto-loading of inferior specific thread debugging library. @anchor{show auto-load libthread-db} @@ -29217,7 +29217,7 @@ Auto-loading verbose mode @table @kbd @anchor{set debug auto-load} @kindex set debug auto-load -@item set debug auto-load [on|off] +@item set debug auto-load @r{[}on@r{|}off@r{]} Set whether to print the filenames attempted to be auto-loaded. @anchor{show debug auto-load} @@ -30524,7 +30524,7 @@ Auto-loading sequences @table @kbd @anchor{set auto-load gdb-scripts} @kindex set auto-load gdb-scripts -@item set auto-load gdb-scripts [on|off] +@item set auto-load gdb-scripts @r{[}on@r{|}off@r{]} Enable or disable the auto-loading of canned sequences of commands scripts. @anchor{show auto-load gdb-scripts} @@ -42311,7 +42311,7 @@ Maintenance Commands @kindex maint set catch-demangler-crashes @kindex maint show catch-demangler-crashes @cindex demangler crashes -@item maint set catch-demangler-crashes [on|off] +@item maint set catch-demangler-crashes @r{[}on@r{|}off@r{]} @itemx maint show catch-demangler-crashes Control whether @value{GDBN} should attempt to catch crashes in the symbol name demangler. The default is to attempt to catch crashes. @@ -43142,7 +43142,7 @@ Maintenance Commands This is useful in debugging performance problems. @table @kbd -@item maint set per-command space [on|off] +@item maint set per-command space @r{[}on@r{|}off@r{]} @itemx maint show per-command space Enable or disable the printing of the memory used by GDB for each command. If enabled, @value{GDBN} will display how much memory each command @@ -43150,7 +43150,7 @@ Maintenance Commands This can also be requested by invoking @value{GDBN} with the @option{--statistics} command-line switch (@pxref{Mode Options}). -@item maint set per-command time [on|off] +@item maint set per-command time @r{[}on@r{|}off@r{]} @itemx maint show per-command time Enable or disable the printing of the execution time of @value{GDBN} for each command. @@ -43166,7 +43166,7 @@ Maintenance Commands This can also be requested by invoking @value{GDBN} with the @option{--statistics} command-line switch (@pxref{Mode Options}). -@item maint set per-command symtab [on|off] +@item maint set per-command symtab @r{[}on@r{|}off@r{]} @itemx maint show per-command symtab Enable or disable the printing of basic symbol table statistics for each command. @@ -43184,7 +43184,7 @@ Maintenance Commands @kindex maint set check-libthread-db @kindex maint show check-libthread-db -@item maint set check-libthread-db [on|off] +@item maint set check-libthread-db @r{[}on@r{|}off@r{]} @itemx maint show check-libthread-db Control whether @value{GDBN} should run integrity checks on inferior specific thread debugging libraries as they are loaded. The default @@ -43318,7 +43318,7 @@ Maintenance Commands @kindex maint set backtrace-on-fatal-signal @kindex maint show backtrace-on-fatal-signal -@item maint set backtrace-on-fatal-signal [on|off] +@item maint set backtrace-on-fatal-signal @r{[}on@r{|}off@r{]} @itemx maint show backtrace-on-fatal-signal When this setting is @code{on}, if @value{GDBN} itself terminates with a fatal signal (e.g.@: SIGSEGV), then a limited backtrace will be diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index e7956c01ab6..91b2ad061d3 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -3923,7 +3923,7 @@ Guile Auto-loading @table @kbd @anchor{set auto-load guile-scripts} @kindex set auto-load guile-scripts -@item set auto-load guile-scripts [on|off] +@item set auto-load guile-scripts @r{[}on@r{|}off@r{]} Enable or disable the auto-loading of Guile scripts. @anchor{show auto-load guile-scripts} @@ -3934,7 +3934,7 @@ Guile Auto-loading @anchor{info auto-load guile-scripts} @kindex info auto-load guile-scripts @cindex print list of auto-loaded Guile scripts -@item info auto-load guile-scripts [@var{regexp}] +@item info auto-load guile-scripts @r{[}@var{regexp}@r{]} Print the list of all Guile scripts that @value{GDBN} auto-loaded. Also printed is the list of Guile scripts that were mentioned in diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index c1eb39360c6..02c407bb887 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -9102,7 +9102,7 @@ Python Auto-loading @table @kbd @anchor{set auto-load python-scripts} @kindex set auto-load python-scripts -@item set auto-load python-scripts [on|off] +@item set auto-load python-scripts @r{[}on@r{|}off@r{]} Enable or disable the auto-loading of Python scripts. @anchor{show auto-load python-scripts} @@ -9113,7 +9113,7 @@ Python Auto-loading @anchor{info auto-load python-scripts} @kindex info auto-load python-scripts @cindex print list of auto-loaded Python scripts -@item info auto-load python-scripts [@var{regexp}] +@item info auto-load python-scripts @r{[}@var{regexp}@r{]} Print the list of all Python scripts that @value{GDBN} auto-loaded. Also printed is the list of Python scripts that were mentioned in -- 2.55.0