]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Rewrite cli-style.c:do_show
authorTom Tromey <tom@tromey.com>
Thu, 11 Dec 2025 22:12:30 +0000 (15:12 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 9 Feb 2026 15:09:10 +0000 (08:09 -0700)
commita444416787a19041dee2aa9b97c71f39085412c8
tree7ceba495e2f596815466196dc4df9af83b82af18
parentbb6648900cd3d5001b651cdbb35c7e9c43fe00d2
Rewrite cli-style.c:do_show

IMO it looks a little nicer if cli-style.c:do_show uses a single
printf to display its output.  This is also slightly more
i18-friendly.

I noticed this while debugging a case where multiple redundant ANSI
escapes were sent.  In conjunction with a subsequent patch, this
approach happens to fix that problem.  FWIW I don't consider such
redundancies to be bugs, but it was convenient to change this one.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/cli/cli-style.c