Don't fill regs window with a negative number of spaces
authorHannes Domani <ssbssa@yahoo.de>
Tue, 5 Jan 2021 16:10:15 +0000 (17:10 +0100)
committerHannes Domani <ssbssa@yahoo.de>
Sun, 7 Feb 2021 18:11:53 +0000 (19:11 +0100)
commit3537bc23d960f961d66d36919049c0cc095c8a9c
tree0e2f62d8a309b0c0880e6692cc0bf0cfc545ac4d
parent5fc2d6aa0628864acc4ab2db4a224c580e15df4b
Don't fill regs window with a negative number of spaces

Function n_spaces can't handle negative values, and returns an invalid
pointer in this case.

gdb/ChangeLog:

2021-02-07  Hannes Domani  <ssbssa@yahoo.de>

* tui/tui-regs.c (tui_data_item_window::rerender): Don't call
n_spaces with a negative value.
gdb/ChangeLog
gdb/tui/tui-regs.c