]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/NEWS
gdb/tui: add window width information to 'info win' output
authorAndrew Burgess <aburgess@redhat.com>
Mon, 24 Jan 2022 21:25:38 +0000 (21:25 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Sun, 6 Feb 2022 12:29:48 +0000 (12:29 +0000)
commitf62843d7513da02f791d88e2d2d0ee9833af5ce0
tree2850be1323647e31ada0cd724610706746665ac9
parent94e57f287f96af6af97dd086e4a04ddf55b7cf60
gdb/tui: add window width information to 'info win' output

Now that we support horizontal window placement in the tui, it makes
sense to have 'info win' include the width, as well as the height, of
the currently visible windows.

That's what this commit does.  Example output is now:

  (gdb) info win
  Name       Lines Columns Focus
  src           12      40 (has focus)
  asm           12      41
  status         1      80
  cmd           11      80

I've added a NEWS entry, but the documentation was already suitably
vague, it just says that 'info win' displays the size of the visible
windows, so I don't think anything needs to be added there.

I've also added some tests, as far as I could find, the 'info win'
command was previously untested.
gdb/NEWS
gdb/testsuite/gdb.tui/info-win.exp [new file with mode: 0644]
gdb/tui/tui-win.c