[binutils-gdb] [gdb] Fix trailing whitespace in annotate.texinfo

Tom de Vries via Gdb-cvs <[email protected]> Thu, 18 Jun 2026 20:07:40 +0000 (GMT)
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=29fa99666c0f3c8b690822f28267bd1ae91ab683

commit 29fa99666c0f3c8b690822f28267bd1ae91ab683
Author: Tom de Vries <[email protected]>
Date:   Thu Jun 18 22:06:50 2026 +0200

    [gdb] Fix trailing whitespace in annotate.texinfo
    
    Fix:
    ...
    gdb/doc/annotate.texinfo:127: trailing whitespace.
    +(gdb)
    gdb/doc/annotate.texinfo:132: trailing whitespace.
    +$
    gdb/doc/annotate.texinfo:732: trailing whitespace.
    +@code{step} or @code{continue},
    gdb/doc/annotate.texinfo:738: trailing whitespace.
    +is output.  When the program stops,
    ...
    
    Verified by checking annotate.html.
    
    Approved-By: Tom Tromey <[email protected]>

Diff:
---
 gdb/contrib/check-whitespace-pre-commit.py | 1 -
 gdb/doc/annotate.texinfo                   | 8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/gdb/contrib/check-whitespace-pre-commit.py b/gdb/contrib/check-whitespace-pre-commit.py
index 7f1d5b47690..b7581a3dc70 100755
--- a/gdb/contrib/check-whitespace-pre-commit.py
+++ b/gdb/contrib/check-whitespace-pre-commit.py
@@ -23,7 +23,6 @@ re_ignore = re.compile("ChangeLog")
 
 # Files that are not clean, so they're only checked when changes.
 todo_list = [
-    "gdb/doc/annotate.texinfo",
     "gdb/doc/refcard.tex",
 ]
 
diff --git a/gdb/doc/annotate.texinfo b/gdb/doc/annotate.texinfo
index 3aed89d5044..27afb54a14a 100644
--- a/gdb/doc/annotate.texinfo
+++ b/gdb/doc/annotate.texinfo
@@ -124,12 +124,12 @@ for details.
 This GDB was configured as "sparc-sun-sunos4.1.3"
 
 ^Z^Zpre-prompt
-(gdb) 
+(gdb)@w{ }
 ^Z^Zprompt
 quit
 
 ^Z^Zpost-prompt
-$ 
+$@w{ }
 @end smallexample
 
 Here @samp{quit} is input to @value{GDBN}; the rest is output from
@@ -729,13 +729,13 @@ deleted a breakpoint.
 @findex starting
 @findex stopping
 When the program starts executing due to a @value{GDBN} command such as
-@code{step} or @code{continue}, 
+@code{step} or @code{continue},
 
 @smallexample
 ^Z^Zstarting
 @end smallexample
 
-is output.  When the program stops, 
+is output.  When the program stops,
 
 @smallexample
 ^Z^Zstopped