aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu-execer.cpp
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-04-13 00:18:12 +0200
committerTom de Vries <tdevries@suse.de>2023-04-13 00:18:12 +0200
commit22e59dae5956999402d8d9b798412b90bf3b4d9c (patch)
tree31d9da5fa227d3d1c33ebf2b5f99179e67d487a6 /gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu-execer.cpp
parent5479c4c7c9e7179d95c6520cdef98ae175874cab (diff)
downloadbinutils-22e59dae5956999402d8d9b798412b90bf3b4d9c.zip
binutils-22e59dae5956999402d8d9b798412b90bf3b4d9c.tar.gz
binutils-22e59dae5956999402d8d9b798412b90bf3b4d9c.tar.bz2
[gdb/tui] Revert workaround in tui_source_window::show_line_number
The m_digits member of tui_source_window is documented as having semantics: ... /* How many digits to use when formatting the line number. This includes the trailing space. */ ... The commit 1b6d4bb2232 ("Redraw both spaces between line numbers and source code") started printing two trailing spaces instead: ... - xsnprintf (text, sizeof (text), "%*d ", m_digits - 1, lineno); + xsnprintf (text, sizeof (text), "%*d ", m_digits - 1, lineno); ... Now that PR30325 is fixed, this no longer has any effect. Fix this by reverting to the original behaviour: print one trailing space char. Tested on x86_64-linux. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu-execer.cpp')
0 files changed, 0 insertions, 0 deletions